[#BloombergLP-bdlma-BufferedSequentialAllocator-2constructor-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/BufferedSequentialAllocator.adoc[BufferedSequentialAllocator]::BufferedSequentialAllocator :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlma_bufferedsequentialallocator.h>` Create a buffered sequential allocator backed by the specified `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-07.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-07.adoc[_» more..._]# Create a buffered sequential allocator using the specified alignment strategy for allocations from `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-0c.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-0c.adoc[_» more..._]# Create a buffered sequential allocator using the specified growth strategy for allocations from `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-02.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-02.adoc[_» more..._]# Create a buffered sequential allocator with growth limited to `maxBufferSize`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-06a.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-06a.adoc[_» more..._]# Create a buffered sequential allocator using the specified growth and alignment strategies for allocations from `buffer`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-0b.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-0b.adoc[_» more..._]# Create a buffered sequential allocator with growth limited to `maxBufferSize` and the specified alignment strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-08.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-08.adoc[_» more..._]# Create a buffered sequential allocator with growth limited to `maxBufferSize` and the specified growth strategy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-069.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-069.adoc[_» more..._]# Create a buffered sequential allocator with growth limited to `maxBufferSize` and the specified growth and alignment strategies. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-0f.adoc[BufferedSequentialAllocator]( char* buffer, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] size, xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] maxBufferSize, xref:BloombergLP/bsls/BlockGrowth/Strategy.adoc[bsls::BlockGrowth::Strategy] growthStrategy, xref:BloombergLP/bsls/Alignment/Strategy.adoc[bsls::Alignment::Strategy] alignmentStrategy, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdlma/BufferedSequentialAllocator/2constructor-0f.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *buffer* | external buffer from which to allocate | *size* | size in bytes of `buffer` | *basicAllocator* | memory allocator; null uses the default | *alignmentStrategy* | strategy used to align allocated memory blocks | *growthStrategy* | strategy controlling growth of internal buffers | *maxBufferSize* | maximum dynamically allocated buffer size in bytes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#