src/AnvilPacker/Util/Mem.cs
/// <summary> Writes a <typeparamref name="T"/> element to 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>
Writes a  element to the array, in big-endian byte order. Unaligned access is assumed.
Writes a element to the array in big - endian byte order . Unaligned access is assumed .
[MethodImpl(Inline)]
        public static void WriteBE<T>(Array buf, nint bytePos, T value) where T : unmanaged
        {
            WriteBE<T>(ref GetByteRef(buf), bytePos, value);
        }
[ MethodImpl ( Inline ) ] public static void WriteBE < T > ( Array buf , nint bytePos , T value ) where T : unmanaged { WriteBE < T > ( ref GetByteRef ( buf ) , bytePos , value ) ; }
Writes a  element to the array, in big-endian byte order.
Writes a element to the array in big - endian byte order .
buf
Array
bytePos
nint
value
T
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 .