BinaryPrimitives.TryWriteUIntPtrLittleEndian 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
此 API 不符合 CLS 規範。
將 a UIntPtr 寫入一個位元組區間,作為小端序。
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
參數
- value
-
UIntPtr
unativeint
要寫入位元組區間的值。
傳回
false若跨度太小無法容納該值;否則,。 true
- 屬性
備註
在 32 位元平台上寫入 4 位元組,或在 64 位元平台寫入 8 位元組到區間起始。