Table of Contents

Method AccessBackingBytes

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

AccessBackingBytes(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.

ArraySegment<byte> AccessBackingBytes(int position)

Parameters

position int

The position.

Returns

ArraySegment<byte>

An ArraySegment pointing directly to the backing bytes for the position.