BinaryPrimitives.WriteUInt32LittleEndian(Span<Byte>, UInt32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
此 API 不符合 CLS 規範。
將 a UInt32 寫入一個位元組區間,作為小端序。
public:
static void WriteUInt32LittleEndian(Span<System::Byte> destination, System::UInt32 value);
[System.CLSCompliant(false)]
public static void WriteUInt32LittleEndian(Span<byte> destination, uint value);
[<System.CLSCompliant(false)>]
static member WriteUInt32LittleEndian : Span<byte> * uint32 -> unit
Public Shared Sub WriteUInt32LittleEndian (destination As Span(Of Byte), value As UInteger)
參數
- value
- UInt32
要寫入位元組區間的值。
- 屬性
例外狀況
destination太小,無法包含一個。UInt32
備註
在區間起始處寫入正好 4 位元組。