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