BinaryPrimitives.ReadUIntPtrLittleEndian(ReadOnlySpan<Byte>) Methode

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Liest eine UIntPtr von Anfang an eine schreibgeschützte Spanne von Bytes, als wenig Endian.

public:
 static UIntPtr ReadUIntPtrLittleEndian(ReadOnlySpan<System::Byte> source);
[System.CLSCompliant(false)]
public static UIntPtr ReadUIntPtrLittleEndian(ReadOnlySpan<byte> source);
[<System.CLSCompliant(false)>]
static member ReadUIntPtrLittleEndian : ReadOnlySpan<byte> -> unativeint
Public Shared Function ReadUIntPtrLittleEndian (source As ReadOnlySpan(Of Byte)) As UIntPtr

Parameter

source
ReadOnlySpan<Byte>

Die schreibgeschützte Spanne, die gelesen werden soll.

Gibt zurück

UIntPtr

unativeint

Der kleine Endianwert.

Attribute

Ausnahmen

source ist zu klein, um ein UIntPtr.

Hinweise

Liest genau 4 Bytes auf 32-Bit-Plattformen oder 8 Bytes auf 64-Bit-Plattformen ab dem Anfang der Spanne.

Gilt für: