Example #1
0
        private byte[] ReadByteArray(SolrBinaryStream stream)
        {
            var sz  = ReadVInt(stream);
            var arr = new byte[sz];

            stream.Read(arr, 0, sz);
            return(arr);
        }
Example #2
0
        private string ReadString(SolrBinaryStream stream)
        {
            int sz = ReadSize(stream);

            if (bytes == null || bytes.Length < sz)
            {
                bytes = new byte[sz];
            }
            stream.Read(bytes, 0, sz);
            return(Encoding.UTF8.GetString(bytes, 0, sz));
        }
Example #3
0
 private string ReadString(SolrBinaryStream stream)
 {
     int sz = ReadSize(stream);
     if (bytes == null || bytes.Length < sz) bytes = new byte[sz];
     stream.Read(bytes, 0, sz);
     return Encoding.UTF8.GetString(bytes, 0, sz);
 }
Example #4
0
 private byte[] ReadByteArray(SolrBinaryStream stream)
 {
     var sz = ReadVInt(stream);
     var arr = new byte[sz];
     stream.Read(arr, 0, sz);
     return arr;
 }