8#ifndef INCLUDED_BSLMA_BUFFERALLOCATOR
9#define INCLUDED_BSLMA_BUFFERALLOCATOR
241#ifdef BDE_OPENSOURCE_PUBLICATION
242#error "bslma_bufferallocator is deprecated"
271 typedef void *(*AllocCallback)(int);
391, d_bufferSize(static_cast<
int>(bufSize))
392, d_allocCallback(allocCallback)
397BufferAllocator::BufferAllocator(
char *buffer,
401: d_strategy(strategy)
404, d_bufferSize(static_cast<int>(bufSize))
405, d_allocCallback(allocCallback)
417#ifndef BDE_OPENSOURCE_PUBLICATION
Definition bslma_allocator.h:457
std::size_t size_type
Definition bslma_allocator.h:499
Definition bslma_bufferallocator.h:264
AlignmentStrategy
Types of alignment strategy to allocate memory.
Definition bslma_bufferallocator.h:274
@ NATURAL_ALIGNMENT
Definition bslma_bufferallocator.h:281
@ MAXIMUM_ALIGNMENT
Definition bslma_bufferallocator.h:276
static void * allocateFromBuffer(int *cursor, char *buffer, size_type bufSize, size_type size, AlignmentStrategy strategy)
void * allocate(size_type size) BSLS_KEYWORD_OVERRIDE
static void * allocateFromBuffer(int *cursor, char *buffer, size_type bufSize, size_type size, int alignment)
void deallocate(void *address) BSLS_KEYWORD_OVERRIDE
This function has no effect for this buffer allocator.
Definition bslma_bufferallocator.h:411
void *(* AllocCallback)(int)
Definition bslma_bufferallocator.h:271
~BufferAllocator() BSLS_KEYWORD_OVERRIDE
Destroy this buffer allocator.
bslma::BufferAllocator bslma_BufferAllocator
This alias is defined for backward compatibility.
Definition bslma_bufferallocator.h:423
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition balxml_encoderoptions.h:68