ByteSpanExtensions Class ​
Definition ​
Extension methods for reading and writing primitive values from spans of bytes.
c#
public static class ByteSpanExtensionsMethods ​
| Name | Description |
|---|---|
GetInt16(Span<Byte>) | Reads a little-endian Int16 from a span of bytes. |
GetInt16(Span<Byte>, Endian) | Reads a Int16 from a span of bytes using the specified endianness. |
GetInt32(Span<Byte>) | Reads a little-endian Int32 from a span of bytes. |
GetInt32(Span<Byte>, Endian) | Reads an Int32 from a span of bytes using the specified endianness. |
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. |
GetUInt16(Span<Byte>) | Reads a little-endian UInt16 from a span of bytes. |
GetUInt16(Span<Byte>, Endian) | Reads a UInt16 from a span of bytes using the specified endianness. |
GetUInt24(Span<Byte>) | Reads a little-endian UInt24 from a span of bytes. |
GetUInt24(Span<Byte>, Endian) | Reads a UInt24 from a span of bytes using the specified endianness. |
GetUInt32(Span<Byte>) | Reads a little-endian UInt32 from a span of bytes. |
GetUInt32(Span<Byte>, Endian) | Reads a UInt32 from a span of bytes using the specified endianness. |
GetUInt64(Span<Byte>) | Reads a little-endian UInt64 from a span of bytes. |
GetUInt64(Span<Byte>, Endian) | Reads a UInt64 from a span of bytes using the specified endianness. |
SetInt16(Span<Byte>, Int16) | Writes a little-endian Int16 to a span of bytes. |
SetInt16(Span<Byte>, Int16, Endian) | Writes a Int16 to a span of bytes using the specified endianness. |
SetInt32(Span<Byte>, Int32) | Writes a little-endian Int32 to a span of bytes. |
SetInt32(Span<Byte>, Int32, Endian) | Writes an Int32 to a span of bytes using the specified endianness. |
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. |
SetUInt16(Span<Byte>, UInt16) | Writes a little-endian UInt16 to a span of bytes. |
SetUInt16(Span<Byte>, UInt16, Endian) | Writes a UInt16 to a span of bytes using the specified endianness. |
SetUInt24(Span<Byte>, UInt24) | Writes a little-endian UInt24 to a span of bytes. |
SetUInt24(Span<Byte>, UInt24, Endian) | Writes a UInt24 to a span of bytes using the specified endianness. |
SetUInt32(Span<Byte>, UInt32) | Writes a little-endian UInt32 to a span of bytes. |
SetUInt32(Span<Byte>, UInt32, Endian) | Writes a UInt32 to a span of bytes using the specified endianness. |
SetUInt64(Span<Byte>, UInt64) | Writes a little-endian UInt64 to a span of bytes. |
SetUInt64(Span<Byte>, UInt64, Endian) | Writes a UInt64 to a span of bytes using the specified endianness. |