Class ByteBufferFactory
Represents a factory for IBsonBuffers.
public static class ByteBufferFactory
- Inheritance
-
ByteBufferFactory
- Inherited Members
Methods
Create(IBsonChunkSource, int)
Creates a buffer of the specified length. Depending on the length, either a SingleChunkBuffer or a MultiChunkBuffer will be created.
public static IByteBuffer Create(IBsonChunkSource chunkSource, int minimumCapacity)
Parameters
chunkSource
IBsonChunkSourceThe chunk pool.
minimumCapacity
intThe minimum capacity.
Returns
- IByteBuffer
A buffer with at least the minimum capacity.