BinaryPrimitives.WriteUInt32LittleEndian(Span<Byte>, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
将 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 个字节写入范围开头。