BinaryPrimitives.TryWriteUIntPtrLittleEndian Methode

Definitie

Belangrijk

Deze API is niet CLS-conform.

Schrijft een UIntPtr in een reeks bytes, als weinig endian.

public:
 static bool TryWriteUIntPtrLittleEndian(Span<System::Byte> destination, UIntPtr value);
[System.CLSCompliant(false)]
public static bool TryWriteUIntPtrLittleEndian(Span<byte> destination, UIntPtr value);
[<System.CLSCompliant(false)>]
static member TryWriteUIntPtrLittleEndian : Span<byte> * unativeint -> bool
Public Shared Function TryWriteUIntPtrLittleEndian (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 weinig 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