public static T Read <[Primitive] T>(this ReadOnlySpan <byte> slice) where T : struct { Contract.RequiresInInclusiveRange(Unsafe.SizeOf <T>(), (uint)slice.Length); return(slice.Cast <byte, T>()[0]); }
public static T Read <[Primitive] T>(this ReadOnlySpan <byte> slice) where T : struct { Contract.RequiresInInclusiveRange(Unsafe.SizeOf <T>(), (uint)slice.Length); return(slice.Cast <byte, T>()[0]); }