Thrift.Protocol.TJSONProtocol.ReadJSONSyntaxChar C# (CSharp) Method

ReadJSONSyntaxChar() protected method

Read a byte that must match b[0]; otherwise an exception is thrown. Marked protected to avoid synthetic accessor in JSONListContext.Read and JSONPairContext.Read
protected ReadJSONSyntaxChar ( byte b ) : void
b byte
return void
        protected void ReadJSONSyntaxChar(byte[] b)
        {
            byte ch = reader.Read();
            if (ch != b[0])
            {
                throw new TProtocolException(TProtocolException.INVALID_DATA,
                                             "Unexpected character:" + (char)ch);
            }
        }