Click or drag to resize

IByteBufferAccessBackingBytes 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.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
ArraySegment<byte> AccessBackingBytes(
	int position


Type: SystemInt32
The position.

Return Value

Type: ArraySegmentByte
An ArraySegment pointing directly to the backing bytes for the position.
See Also