Table of Contents

Method ToByteSpan

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToByteSpan(Span<byte>)

Converts the ObjectId to a byte buffer provided by the input span.

public void ToByteSpan(Span<byte> destination)

Parameters

destination Span<byte>

The destination byte span.

Exceptions

ArgumentException

Not enough room in destination span.