Skip to content

ByteArrayExtensions.SetUInt64 Method ​

Overloads ​

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

SetUInt64(Byte[], Int32, UInt64) ​

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

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

View source

Parameters ​

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

SetUInt64(Byte[], Int32, UInt64, Endian) ​

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

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

View source

Parameters ​

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