Skip to content

ByteSpanExtensions.SetInt32 Method

Overloads

Name Description
SetInt32(Span<Byte>, Int32) Writes a little-endian Int32 to a span of bytes.
SetInt32(Span<Byte>, Int32, Endian) Writes an Int32 to a span of bytes using the specified endianness.

SetInt32(Span<Byte>, Int32)

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

public static void SetInt32(this Span<Byte> bytes, int value);

View source

Parameters

Name Type Description
bytes Span<Byte>
value Int32 The value to write.

SetInt32(Span<Byte>, Int32, Endian)

Writes an Int32 to a span of bytes using the specified endianness.

public static void SetInt32(this Span<Byte> bytes, int value, Endian endian);

View source

Parameters

Name Type Description
bytes Span<Byte>
value Int32 The value to write.
endian Endian The endianness to use.