Constructor RecyclingInt32BlockAllocator
RecyclingInt32BlockAllocator(Int32, Int32, Counter)
Creates a new RecyclingInt32BlockAllocator.
Declaration
public RecyclingInt32BlockAllocator(int blockSize, int maxBufferedBlocks, Counter bytesUsed)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | blockSize | The block size in bytes. |
System.Int32 | maxBufferedBlocks | Maximum number of buffered int block. |
Counter | bytesUsed | Counter reference counting internally allocated bytes. |
RecyclingInt32BlockAllocator(Int32, Int32)
Creates a new RecyclingInt32BlockAllocator.
Declaration
public RecyclingInt32BlockAllocator(int blockSize, int maxBufferedBlocks)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | blockSize | The size of each block returned by this allocator. |
System.Int32 | maxBufferedBlocks | Maximum number of buffered int blocks. |
RecyclingInt32BlockAllocator()
Creates a new RecyclingInt32BlockAllocator with a block size of INT32_BLOCK_SIZE, upper buffered docs limit of DEFAULT_BUFFERED_BLOCKS.
Declaration
public RecyclingInt32BlockAllocator()