Skip to content

ByteReadOnlySpanExtensions.GetInt64 Method ​

Overloads ​

NameDescription
GetInt64(ReadOnlySpan<Byte>)Reads a little-endian Int64 from a read-only span of bytes.
GetInt64(ReadOnlySpan<Byte>, Endian)Reads a Int64 from a read-only span of bytes using the specified endianness.

GetInt64(ReadOnlySpan<Byte>) ​

Reads a little-endian Int64 from a read-only span of bytes.

c#
public static long GetInt64(this ReadOnlySpan<Byte> bytes);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>

Returns ​

Int64

The Int64 value.

GetInt64(ReadOnlySpan<Byte>, Endian) ​

Reads a Int64 from a read-only span of bytes using the specified endianness.

c#
public static long GetInt64(this ReadOnlySpan<Byte> bytes, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesReadOnlySpan<Byte>
endianEndianThe endianness to use.

Returns ​

Int64

The Int64 value.