src/AnvilPacker/Util/Mem.cs
/// <summary> Reads a <typeparamref name="T"/> element from the array, in big-endian byte order. Unaligned access is assumed. </summary>
/// <remarks>
/// <typeparamref name="T"/> must be a primitive type.
/// This method does not perform bounds check. Use carefully. 
/// </remarks>
Reads a  element from the array, in big-endian byte order. Unaligned access is assumed.
Reads a element from the array in big - endian byte order . Unaligned access is assumed .
[MethodImpl(Inline)]
        public static T ReadBE<T>(Array buf, nint bytePos) where T : unmanaged
        {
            return ReadBE<T>(ref GetByteRef(buf), bytePos);
        }
[ MethodImpl ( Inline ) ] public static T ReadBE < T > ( Array buf , nint bytePos ) where T : unmanaged { return ReadBE < T > ( ref GetByteRef ( buf ) , bytePos ) ; }
Reads a  element from the array, in big-endian byte order.
Reads a element from the array in big - endian byte order .
buf
Array
bytePos
nint
remarks
must be a primitive type.
This method does not perform bounds check. Use carefully.
must be a primitive type . This method does not perform bounds check . Use carefully .