Constructor RecyclingByteBlockAllocator
RecyclingByteBlockAllocator(Int32, Int32, Counter)
Creates a new RecyclingByteBlockAllocator
Declaration
public RecyclingByteBlockAllocator(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 byte block. |
Counter | bytesUsed | Counter reference counting internally allocated bytes. |
RecyclingByteBlockAllocator(Int32, Int32)
Creates a new RecyclingByteBlockAllocator.
Declaration
public RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | blockSize | The block size in bytes. |
System.Int32 | maxBufferedBlocks | Maximum number of buffered byte block. |
RecyclingByteBlockAllocator()
Creates a new RecyclingByteBlockAllocator with a block size of BYTE_BLOCK_SIZE, upper buffered docs limit of DEFAULT_BUFFERED_BLOCKS (64).
Declaration
public RecyclingByteBlockAllocator()