BinaryPrimitives.TryReadUIntPtrBigEndian Methode

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Liest eine UIntPtr von Anfang an eine schreibgeschützte Spanne von Bytes, als big endian.

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

Parameter

source
ReadOnlySpan<Byte>

Die schreibgeschützte Spanne von Bytes, die gelesen werden sollen.

value
UIntPtr

unativeint

Wenn diese Methode zurückgegeben wird, enthält sie den Wert, der aus der schreibgeschützten Bytespanne gelesen wird, als big endian.

Gibt zurück

falsewenn die Spanne zu klein ist, um ein UIntPtr; andernfalls . true

Attribute

Hinweise

Liest genau 4 Bytes auf 32-Bit-Plattformen – oder 8 Bytes auf 64-Bit-Plattformen von Anfang an.

Gilt für: