ByteBufferSliceAccessBackingBytes 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.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public ArraySegment<byte> AccessBackingBytes(
int position
)
Public Function AccessBackingBytes (
position As Integer
) As ArraySegment(Of Byte)
abstract AccessBackingBytes :
position : int -> ArraySegment<byte>
override AccessBackingBytes :
position : int -> ArraySegment<byte>
Parameters
- position
- Type: SystemInt32
The position.
Return Value
Type:
ArraySegmentByte
An ArraySegment pointing directly to the backing bytes for the position.
Implements
IByteBufferAccessBackingBytes(Int32)See Also