System.TermInfo.Database.ReadString C# (CSharp) Méthode

ReadString() private static méthode

Reads a string from the buffer starting at the specified position.
private static ReadString ( byte buffer, int pos ) : string
buffer byte The buffer from which to read.
pos int The position at which to read.
Résultat string
            private static string ReadString(byte[] buffer, int pos)
            {
                int end = FindNullTerminator(buffer, pos);
                return Encoding.ASCII.GetString(buffer, pos, end - pos);
            }