Skip to content

ByteReadOnlySpanExtensions Class

Definition

Extension methods for reading primitive values from read-only spans of bytes.

public static class ByteReadOnlySpanExtensions

View source

Methods

Name Description
GetInt16(ReadOnlySpan<Byte>) Reads a little-endian Int16 from a read-only span of bytes.
GetInt16(ReadOnlySpan<Byte>, Endian) Reads a Int16 from a read-only span of bytes using the specified endianness.
GetInt32(ReadOnlySpan<Byte>) Reads a little-endian Int32 from a read-only span of bytes.
GetInt32(ReadOnlySpan<Byte>, Endian) Reads an Int32 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.
GetInt64(ReadOnlySpan<Byte>, Endian) Reads a Int64 from a read-only span of bytes using the specified endianness.
GetUInt16(ReadOnlySpan<Byte>) Reads a little-endian UInt16 from a read-only span of bytes.
GetUInt16(ReadOnlySpan<Byte>, Endian) Reads a UInt16 from a read-only span of bytes using the specified endianness.
GetUInt24(ReadOnlySpan<Byte>) Reads a little-endian UInt24 from a read-only span of bytes.
GetUInt24(ReadOnlySpan<Byte>, Endian) Reads a UInt24 from a read-only span of bytes using the specified endianness.
GetUInt32(ReadOnlySpan<Byte>) Reads a little-endian UInt32 from a read-only span of bytes.
GetUInt32(ReadOnlySpan<Byte>, Endian) Reads a UInt32 from a read-only span of bytes using the specified endianness.
GetUInt64(ReadOnlySpan<Byte>) Reads a little-endian UInt64 from a read-only span of bytes.
GetUInt64(ReadOnlySpan<Byte>, Endian) Reads a UInt64 from a read-only span of bytes using the specified endianness.