Skip to content

ByteListExtensions.SetInt64 Method ​

Overloads ​

NameDescription
SetInt64(List<Byte>, Int32, Int64)Writes a little-endian Int64 to a List<T> of bytes at the specified index.
SetInt64(List<Byte>, Int32, Int64, Endian)Writes a Int64 to a List<T> of bytes at the specified index using the specified endianness.

SetInt64(List<Byte>, Int32, Int64) ​

Writes a little-endian Int64 to a List<T> of bytes at the specified index.

c#
public static void SetInt64(this List<Byte> bytes, int index, long value);

View source

Parameters ​

NameTypeDescription
bytesList<Byte>
indexInt32The zero-based index to write to.
valueInt64The value to write.

SetInt64(List<Byte>, Int32, Int64, Endian) ​

Writes a Int64 to a List<T> of bytes at the specified index using the specified endianness.

c#
public static void SetInt64(this List<Byte> bytes, int index, long value, Endian endian);

View source

Parameters ​

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