src/AnvilPacker/Util/Mem.cs
/// <summary> Returns a reference to the n-th byte of the span. </summary>
Returns a reference to the n-th byte of the span.
Returns a reference to the n - th byte of the span .
[MethodImpl(Inline)]
        public static ref byte GetByteRef<T>(ReadOnlySpan<T> span)
        {
            return ref Unsafe.As<T, byte>(ref MemoryMarshal.GetReference(span));
        }
[ MethodImpl ( Inline ) ] public static ref byte GetByteRef < T > ( ReadOnlySpan < T > span ) { return ref Unsafe . As < T , byte > ( ref MemoryMarshal . GetReference ( span ) ) ; }
Returns a reference to the n-th byte of the span.
Returns a reference to the n - th byte of the span .
// return (byte*)&buf[0]
span
ReadOnlySpan<T>