Skip to content

ByteSpanExtensions.SetInt64 Method ​

Overloads ​

NameDescription
SetInt64(Span<Byte>, Int64)Writes a little-endian Int64 to a span of bytes.
SetInt64(Span<Byte>, Int64, Endian)Writes a Int64 to a span of bytes using the specified endianness.

SetInt64(Span<Byte>, Int64) ​

Writes a little-endian Int64 to a span of bytes.

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

View source

Parameters ​

NameTypeDescription
bytesSpan<Byte>
valueInt64The value to write.

SetInt64(Span<Byte>, Int64, Endian) ​

Writes a Int64 to a span of bytes using the specified endianness.

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

View source

Parameters ​

NameTypeDescription
bytesSpan<Byte>
valueInt64The value to write.
endianEndianThe endianness to use.