BinaryPrimitives.TryReadUInt128LittleEndian Method

Definition

Important

This API is not CLS-compliant.

Reads a UInt128 from the beginning of a read-only span of bytes, as little endian.

public:
 static bool TryReadUInt128LittleEndian(ReadOnlySpan<System::Byte> source, [Runtime::InteropServices::Out] UInt128 % value);
[System.CLSCompliant(false)]
public static bool TryReadUInt128LittleEndian (ReadOnlySpan<byte> source, out UInt128 value);
[<System.CLSCompliant(false)>]
static member TryReadUInt128LittleEndian : ReadOnlySpan<byte> * UInt128 -> bool
Public Shared Function TryReadUInt128LittleEndian (source As ReadOnlySpan(Of Byte), ByRef value As UInt128) As Boolean

Parameters

source
ReadOnlySpan<Byte>

The read-only span of bytes to read.

value
UInt128

When this method returns, contains the value read out of the read-only span of bytes, as little endian.

Returns

false if the span is too small to contain a UInt128; otherwise, true.

Attributes

Remarks

Reads exactly 16 bytes from the beginning of the span.

Applies to