src/AnvilPacker/Data/IO/DataReader.cs
/// <summary> Reads an UTF8 string of <paramref name="len"/> bytes. </summary>
Reads an UTF8 string of  bytes.
Reads an UTF8 string of bytes .
public string ReadString(int len)
        {
            Span<byte> buf = len <= 256 ? stackalloc byte[len] : new byte[len];
            ReadBytes(buf);
            return Encoding.UTF8.GetString(buf);
        }
public string ReadString ( int len ) { Span < byte > buf = len <= 256 ? stackalloc byte [ len ] : new byte [ len ] ; ReadBytes ( buf ) ; return Encoding . UTF8 . GetString ( buf ) ; }
Reads an UTF8 string of  bytes.
Reads an UTF8 string of bytes .
len
int