8#ifndef INCLUDED_BDLSB_MEMOUTSTREAMBUF
9#define INCLUDED_BDLSB_MEMOUTSTREAMBUF
183#include <bdlscm_version.h>
194#include <bsl_cstddef.h>
195#include <bsl_cstdlib.h>
196#include <bsl_cstring.h>
198#include <bsl_streambuf.h>
216 k_INITIAL_BUFFER_SIZE = 256,
221#ifndef BDE_OMIT_INTERNAL_DEPRECATED
222 , BDESB_INITIAL_BUFFER_SIZE = k_INITIAL_BUFFER_SIZE
223 , BDESB_GROWTH_FACTOR = k_GROWTH_FACTOR
224 , INITIAL_BUFFER_SIZE = k_INITIAL_BUFFER_SIZE
225 , GROWTH_FACTOR = k_GROWTH_FACTOR
247 void grow(bsl::size_t newLength);
257 int_type insertionChar = bsl::streambuf::traits_type::eof())
268 bsl::ios_base::seekdir way,
269 bsl::ios_base::openmode which =
bsl::ios_base::in
270 |
bsl::ios_base::out)
280 bsl::ios_base::openmode which =
bsl::ios_base::in
281 |
bsl::ios_base::out)
294 bslma::UsesBslmaAllocator);
312 bslma::Allocator *basicAllocator = 0);
339 const
char *
data() const;
356: d_allocator_p(
bslma::Default::allocator(basicAllocator))
362MemOutStreamBuf::MemOutStreamBuf(bsl::size_t numElements,
364: d_allocator_p(
bslma::Default::allocator(basicAllocator))
368 ?
static_cast<bsl::streamsize
>(k_INITIAL_BUFFER_SIZE)
390 return epptr() - pbase();
402 return pptr() - pbase();
#define BSLMF_NESTED_TRAIT_DECLARATION(t_TYPE, t_TRAIT)
Definition bslmf_nestedtraitdeclaration.h:231
Definition bdlsb_memoutstreambuf.h:212
pos_type seekoff(off_type offset, bsl::ios_base::seekdir way, bsl::ios_base::openmode which=bsl::ios_base::in|bsl::ios_base::out) BSLS_KEYWORD_OVERRIDE
bsl::streamsize xsputn(const char_type *source, bsl::streamsize numChars) BSLS_KEYWORD_OVERRIDE
int_type overflow(int_type insertionChar=bsl::streambuf::traits_type::eof()) BSLS_KEYWORD_OVERRIDE
bsl::size_t capacity() const
Definition bdlsb_memoutstreambuf.h:388
~MemOutStreamBuf() BSLS_KEYWORD_OVERRIDE
Destroy this stream buffer.
Definition bdlsb_memoutstreambuf.h:373
void reserveCapacity(bsl::size_t numCharacters)
bsl::size_t length() const
Return the number of valid characters in this stream buffer.
Definition bdlsb_memoutstreambuf.h:400
void reset()
Definition bdlsb_memoutstreambuf.h:380
pos_type seekpos(pos_type position, bsl::ios_base::openmode which=bsl::ios_base::in|bsl::ios_base::out) BSLS_KEYWORD_OVERRIDE
const char * data() const
Definition bdlsb_memoutstreambuf.h:394
Definition bslma_allocator.h:457
virtual void deallocate(void *address)=0
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition bdlsb_fixedmeminput.h:145
Definition bdlb_printmethods.h:283
Definition balxml_encoderoptions.h:68