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

ReadInt16() private static méthode

Read a 16-bit value from the buffer starting at the specified position.
private static ReadInt16 ( byte buffer, int pos ) : short
buffer byte The buffer from which to read.
pos int The position at which to read.
Résultat short
            private static short ReadInt16(byte[] buffer, int pos)
            {
                return (short)
                    ((((int)buffer[pos + 1]) << 8) |
                     ((int)buffer[pos] & 0xff));
            }