BinaryPrimitives.TryWriteUIntPtrBigEndian(Span<Byte>, UIntPtr) Methode

Definitie

Belangrijk

Deze API is niet CLS-conform.

Schrijft een UIntPtr in een bereik van bytes, als big endian.

public:
 static bool TryWriteUIntPtrBigEndian(Span<System::Byte> destination, UIntPtr value);
[System.CLSCompliant(false)]
public static bool TryWriteUIntPtrBigEndian(Span<byte> destination, UIntPtr value);
[<System.CLSCompliant(false)>]
static member TryWriteUIntPtrBigEndian : Span<byte> * unativeint -> bool
Public Shared Function TryWriteUIntPtrBigEndian (destination As Span(Of Byte), value As UIntPtr) As Boolean

Parameters

destination
Span<Byte>

Het bereik van bytes waarin de waarde moet worden geschreven, als big endian.

value
UIntPtr

unativeint

De waarde die moet worden geschreven in het bereik van bytes.

Retouren

false als de spanwijdte te klein is om de waarde te bevatten; anders, true.

Kenmerken

Opmerkingen

Schrijft precies 4 bytes op 32-bits platforms , of 8 bytes op 64-bits platforms tot het begin van de periode.

Van toepassing op