Skip to content

ByteSpanExtensions.SetUInt32 Method ​

Overloads ​

NameDescription
SetUInt32(Span<Byte>, UInt32)Writes a little-endian UInt32 to a span of bytes.
SetUInt32(Span<Byte>, UInt32, Endian)Writes a UInt32 to a span of bytes using the specified endianness.

SetUInt32(Span<Byte>, UInt32) ​

Writes a little-endian UInt32 to a span of bytes.

c#
public static void SetUInt32(this Span<Byte> bytes, uint value);

View source

Parameters ​

NameTypeDescription
bytesSpan<Byte>
valueUInt32The value to write.

SetUInt32(Span<Byte>, UInt32, Endian) ​

Writes a UInt32 to a span of bytes using the specified endianness.

c#
public static void SetUInt32(this Span<Byte> bytes, uint value, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesSpan<Byte>
valueUInt32The value to write.
endianEndianThe endianness to use.