8#ifndef INCLUDED_BSLX_TESTOUTSTREAM
9#define INCLUDED_BSLX_TESTOUTSTREAM
193#include <bslscm_version.h>
200#include <bsl_cstddef.h>
201#include <bsl_iosfwd.h>
202#include <bsl_string.h>
206namespace bslma {
class Allocator; }
225 bool d_makeNextInvalidFlag;
257 bsl::size_t initialCapacity,
805 operator const void *()
const;
816 const char *
data()
const;
824 bsl::size_t
length()
const;
859 d_makeNextInvalidFlag =
true;
885TestOutStream::operator
const void *()
const
Definition bslstl_string.h:1281
size_type length() const BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:6601
CHAR_TYPE * data() BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:6477
Definition bslma_allocator.h:457
Definition bslx_byteoutstream.h:212
void invalidate()
Definition bslx_byteoutstream.h:697
bool isValid() const
Definition bslx_byteoutstream.h:1583
void reserveCapacity(bsl::size_t newCapacity)
Definition bslx_byteoutstream.h:722
bsl::size_t length() const
Return the number of bytes in this stream.
Definition bslx_byteoutstream.h:1589
const char * data() const
Definition bslx_byteoutstream.h:1577
int bdexVersionSelector() const
Definition bslx_byteoutstream.h:1571
void reset()
Definition bslx_byteoutstream.h:728
Definition bslx_testoutstream.h:220
TestOutStream & putUint48(bsls::Types::Uint64 value)
TestOutStream & putArrayUint32(const unsigned int *values, int numValues)
TestOutStream & putUint16(unsigned int value)
TestOutStream & putInt24(int value)
TestOutStream(int versionSelector, bsl::size_t initialCapacity, bslma::Allocator *basicAllocator=0)
TestOutStream & putArrayUint56(const bsls::Types::Uint64 *values, int numValues)
TestOutStream & putInt56(bsls::Types::Int64 value)
TestOutStream & putLength(int length)
TestOutStream & putFloat64(double value)
TestOutStream & putArrayInt64(const bsls::Types::Int64 *values, int numValues)
TestOutStream & putArrayInt48(const bsls::Types::Int64 *values, int numValues)
TestOutStream & putUint8(unsigned int value)
TestOutStream & putArrayUint48(const bsls::Types::Uint64 *values, int numValues)
TestOutStream & putArrayInt8(const signed char *values, int numValues)
TestOutStream & putUint32(unsigned int value)
TestOutStream & putInt48(bsls::Types::Int64 value)
TestOutStream & putString(const bsl::string &value)
Definition bslx_testoutstream.h:877
TestOutStream & putInt16(int value)
TestOutStream & putArrayFloat32(const float *values, int numValues)
void invalidate()
Definition bslx_testoutstream.h:851
void makeNextInvalid()
Definition bslx_testoutstream.h:857
TestOutStream & putUint24(unsigned int value)
TestOutStream & putArrayUint16(const unsigned short *values, int numValues)
TestOutStream & putArrayInt16(const short *values, int numValues)
TestOutStream & putArrayInt56(const bsls::Types::Int64 *values, int numValues)
int bdexVersionSelector() const
Definition bslx_testoutstream.h:891
TestOutStream & putUint56(bsls::Types::Uint64 value)
friend bsl::ostream & operator<<(bsl::ostream &, const TestOutStream &)
TestOutStream & putArrayFloat64(const double *values, int numValues)
void reserveCapacity(bsl::size_t newCapacity)
Definition bslx_testoutstream.h:863
void reset()
Definition bslx_testoutstream.h:869
TestOutStream(int versionSelector, bslma::Allocator *basicAllocator=0)
bool isValid() const
Definition bslx_testoutstream.h:903
TestOutStream & putArrayUint40(const bsls::Types::Uint64 *values, int numValues)
TestOutStream & putArrayUint8(const char *values, int numValues)
TestOutStream & putVersion(int version)
bsl::size_t length() const
Return the number of bytes in this stream.
Definition bslx_testoutstream.h:909
~TestOutStream()
Destroy this object.
TestOutStream & putInt32(int value)
const char * data() const
Definition bslx_testoutstream.h:897
TestOutStream & putInt40(bsls::Types::Int64 value)
TestOutStream & putFloat32(float value)
TestOutStream & putArrayInt24(const int *values, int numValues)
TestOutStream & putArrayUint24(const unsigned int *values, int numValues)
TestOutStream & putInt8(int value)
TestOutStream & putUint64(bsls::Types::Uint64 value)
TestOutStream & putInt64(bsls::Types::Int64 value)
TestOutStream & putUint40(bsls::Types::Uint64 value)
TestOutStream & putArrayInt40(const bsls::Types::Int64 *values, int numValues)
TestOutStream & putArrayUint64(const bsls::Types::Uint64 *values, int numValues)
TestOutStream & putArrayInt8(const char *values, int numValues)
TestOutStream & putArrayInt32(const int *values, int numValues)
TestOutStream & putArrayUint8(const unsigned char *values, int numValues)
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balxml_encoderoptions.h:68
STREAM & bdexStreamOut(STREAM &stream, const TYPE &value)
Definition bslx_outstreamfunctions.h:992
Definition bslx_byteinstream.h:377
bsl::ostream & operator<<(bsl::ostream &stream, const ByteInStream &object)
Definition bslma_usesbslmaallocator.h:343
unsigned long long Uint64
Definition bsls_types.h:137
long long Int64
Definition bsls_types.h:132