BinaryPrimitives.TryWriteInt64BigEndian(Span<Byte>, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes an Int64 into a span of bytes, as big endian.
public:
static bool TryWriteInt64BigEndian(Span<System::Byte> destination, long value);
public static bool TryWriteInt64BigEndian(Span<byte> destination, long value);
static member TryWriteInt64BigEndian : Span<byte> * int64 -> bool
Public Shared Function TryWriteInt64BigEndian (destination As Span(Of Byte), value As Long) As Boolean
Parameters
- value
- Int64
The value to write into the span of bytes.
Returns
true if the span is large enough to contain an Int64; otherwise, false.
Remarks
Writes exactly 8 bytes to the beginning of the span.