DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="2.10.1" />

 SpanReader

public static class SpanReader
Represents extension methods for SpanReader<T> type.

Reads the value of blittable type from the raw bytes represents by memory block.

public static bool TryRead<T>(this ref SpanReader reader, out T result) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)

Reads the value of blittable type from the raw bytes represents by memory block.