Click or drag to resize

ByteBufferSlice.AccessBackingBytes Method

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.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public ArraySegment<byte> AccessBackingBytes(
	int position
)

Parameters

position
Type: System.Int32
The position.

Return Value

Type: ArraySegment<Byte>
An ArraySegment pointing directly to the backing bytes for the position.

Implements

IByteBuffer.AccessBackingBytes(Int32)
See Also