Constructor MultiChunkBuffer
MultiChunkBuffer(IBsonChunkSource)
Initializes a new instance of the MultiChunkBuffer class.
public MultiChunkBuffer(IBsonChunkSource chunkSource)
Parameters
chunkSource
IBsonChunkSourceThe chunk pool.
Exceptions
- ArgumentNullException
chunkPool
MultiChunkBuffer(IEnumerable<IBsonChunk>, int?, bool)
Initializes a new instance of the MultiChunkBuffer class.
public MultiChunkBuffer(IEnumerable<IBsonChunk> chunks, int? length = null, bool isReadOnly = false)
Parameters
chunks
IEnumerable<IBsonChunk>The chunks.
length
int?The length.
isReadOnly
boolWhether the buffer is read only.
Exceptions
- ArgumentNullException
chunks