Skip to content

ByteIListExtensions.SetUInt64 Method ​

Overloads ​

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

SetUInt64(IList<Byte>, Int32, UInt64) ​

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

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

View source

Parameters ​

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

SetUInt64(IList<Byte>, Int32, UInt64, Endian) ​

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

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

View source

Parameters ​

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