Constructor MultiChunkBuffer
MultiChunkBuffer(IBsonChunkSource)
Initializes a new instance of the MultiChunkBuffer class.
public MultiChunkBuffer(IBsonChunkSource chunkSource)
Parameters
chunkSourceIBsonChunkSourceThe 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
chunksIEnumerable<IBsonChunk>The chunks.
lengthint?The length.
isReadOnlyboolWhether the buffer is read only.
Exceptions
- ArgumentNullException
chunks