/// <exception cref="System.IO.IOException"/> public virtual FileSystemApplicationHistoryStore.HistoryFileReader.Entry Next() { TFile.Reader.Scanner.Entry entry = this.scanner.Entry(); DataInputStream dis = entry.GetKeyStream(); FileSystemApplicationHistoryStore.HistoryDataKey key = new FileSystemApplicationHistoryStore.HistoryDataKey (); key.ReadFields(dis); dis = entry.GetValueStream(); byte[] value = new byte[entry.GetValueLength()]; dis.Read(value); this.scanner.Advance(); return(new FileSystemApplicationHistoryStore.HistoryFileReader.Entry(this, key, value )); }
/// <exception cref="System.IO.IOException"/> public virtual bool Next() { if (scanner.AtEnd()) { return(false); } TFile.Reader.Scanner.Entry entry = scanner.Entry(); keyLength = entry.GetKeyLength(); CheckKeyBuffer(keyLength); entry.GetKey(keyBuffer); valueLength = entry.GetValueLength(); CheckValueBuffer(valueLength); entry.GetValue(valueBuffer); scanner.Advance(); return(true); }