Class MultiChunkBuffer
An IByteBuffer that is backed by multiple chunks.
- Inheritance
-
Multi
Chunk Buffer
- Implements
- Inherited Members
- Extension Methods
Constructors
- Multi
Chunk Buffer(IBson Chunk Source) Initializes a new instance of the Multi
Chunk class.Buffer
- MultiChunkBuffer(IEnumerable<IBsonChunk>, int?, bool)
Initializes a new instance of the Multi
Chunk class.Buffer
Properties
- Capacity
Gets the capacity.
- Chunk
Source Gets the chunk source.
- Is
Read Only Gets a value indicating whether this instance is read only.
- Length
Gets or sets the length.
Methods
- Access
Backing Bytes(int) Access the backing bytes directly. The returned ArraySegment will point to the desired position and contain as many bytes as possible up to the next chunk boundary (if any). If the returned ArraySegment does not contain enough bytes for your needs you will have to call ReadBytes instead.
- Clear(int,
int) Clears the specified bytes.
- Ensure
Capacity(int) Ensure that the buffer has a minimum capacity. Depending on the buffer allocation strategy calling this method may result in a higher capacity than the minimum (but never lower).
- Get
Byte(int) Gets a byte.
- Get
Bytes(int, byte[], int, int) Gets bytes.
- Get
Slice(int, int) Gets a slice of this buffer.
- Make
Read Only() Makes this buffer read only.
- Set
Byte(int, byte) Sets a byte.
- Set
Bytes(int, byte[], int, int) Sets bytes.