Skip to content

ByteSpanExtensions.GetInt64 Method

Overloads

Name Description
GetInt64(Span<Byte>) Reads a little-endian Int64 from a span of bytes.
GetInt64(Span<Byte>, Endian) Reads a Int64 from a span of bytes using the specified endianness.

GetInt64(Span<Byte>)

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

public static long GetInt64(this Span<Byte> bytes);

View source

Parameters

Name Type Description
bytes Span<Byte>

Returns

Int64

The Int64 value.

GetInt64(Span<Byte>, Endian)

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

public static long GetInt64(this Span<Byte> bytes, Endian endian);

View source

Parameters

Name Type Description
bytes Span<Byte>
endian Endian The endianness to use.

Returns

Int64

The Int64 value.