Skip to content

ByteIListExtensions.SetInt32 Method ​

Overloads ​

NameDescription
SetInt32(IList<Byte>, Int32, Int32)Writes a little-endian Int32 to a list of bytes at the specified index.
SetInt32(IList<Byte>, Int32, Int32, Endian)Writes an Int32 to a list of bytes at the specified index using the specified endianness.

SetInt32(IList<Byte>, Int32, Int32) ​

Writes a little-endian Int32 to a list of bytes at the specified index.

c#
public static void SetInt32(this IList<Byte> bytes, int index, int value);

View source

Parameters ​

NameTypeDescription
bytesIList<Byte>
indexInt32The zero-based index to write to.
valueInt32The value to write.

SetInt32(IList<Byte>, Int32, Int32, Endian) ​

Writes an Int32 to a list of bytes at the specified index using the specified endianness.

c#
public static void SetInt32(this IList<Byte> bytes, int index, int value, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesIList<Byte>
indexInt32The zero-based index to write to.
valueInt32The value to write.
endianEndianThe endianness to use.