Skip to content

ByteArrayExtensions.SetUInt24 Method ​

Overloads ​

NameDescription
SetUInt24(Byte[], Int32, UInt24)Writes a little-endian UInt24 to a byte array at the specified index.
SetUInt24(Byte[], Int32, UInt24, Endian)Writes a UInt24 to a byte array at the specified index using the specified endianness.

SetUInt24(Byte[], Int32, UInt24) ​

Writes a little-endian UInt24 to a byte array at the specified index.

c#
public static void SetUInt24(this Byte[] bytes, int index, UInt24 value);

View source

Parameters ​

NameTypeDescription
bytesByte[]
indexInt32The zero-based index to write to.
valueUInt24The UInt24 value to write.

SetUInt24(Byte[], Int32, UInt24, Endian) ​

Writes a UInt24 to a byte array at the specified index using the specified endianness.

c#
public static void SetUInt24(this Byte[] bytes, int index, UInt24 value, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesByte[]
indexInt32The zero-based index to write to.
valueUInt24The UInt24 value to write.
endianEndianThe endianness to use.