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

            stream.Read(arr, 0, sz);
            return(arr);
        }
Beispiel #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));
        }
Beispiel #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);
 }
Beispiel #4
0
 private byte[] ReadByteArray(SolrBinaryStream stream)
 {
     var sz = ReadVInt(stream);
     var arr = new byte[sz];
     stream.Read(arr, 0, sz);
     return arr;
 }