public FileKeyIndex(long generation, Guid? guid, uint trLogFileId, uint trLogOffset, long keyCount, ulong commitUlong, KeyIndexCompression compression) { _guid = guid; _generation = generation; _trLogFileId = trLogFileId; _trLogOffset = trLogOffset; _keyValueCount = keyCount; _commitUlong = commitUlong; _compressionType = compression; }
public FileKeyIndex(long generation, Guid?guid, uint trLogFileId, uint trLogOffset, long keyCount, ulong commitUlong, KeyIndexCompression compression) { _guid = guid; _generation = generation; _trLogFileId = trLogFileId; _trLogOffset = trLogOffset; _keyValueCount = keyCount; _commitUlong = commitUlong; _compressionType = compression; }
public FileKeyIndex(AbstractBufferedReader reader, Guid? guid, bool withCommitUlong, bool modern) { _guid = guid; _generation = reader.ReadVInt64(); _trLogFileId = reader.ReadVUInt32(); _trLogOffset = reader.ReadVUInt32(); _keyValueCount = (long)reader.ReadVUInt64(); _commitUlong = withCommitUlong ? reader.ReadVUInt64() : 0; _compressionType = modern ? (KeyIndexCompression)reader.ReadUInt8() : KeyIndexCompression.Old; }
public FileKeyIndex(AbstractBufferedReader reader, Guid?guid, bool withCommitUlong, bool modern) { _guid = guid; _generation = reader.ReadVInt64(); _trLogFileId = reader.ReadVUInt32(); _trLogOffset = reader.ReadVUInt32(); _keyValueCount = (long)reader.ReadVUInt64(); _commitUlong = withCommitUlong ? reader.ReadVUInt64() : 0; _compressionType = modern ? (KeyIndexCompression)reader.ReadUInt8() : KeyIndexCompression.Old; }
public FileKeyIndex(AbstractBufferedReader reader, Guid?guid, bool withCommitUlong, bool modern, bool withUlongs) { _guid = guid; _generation = reader.ReadVInt64(); _trLogFileId = reader.ReadVUInt32(); _trLogOffset = reader.ReadVUInt32(); _keyValueCount = (long)reader.ReadVUInt64(); _commitUlong = withCommitUlong ? reader.ReadVUInt64() : 0; _compressionType = modern ? (KeyIndexCompression)reader.ReadUInt8() : KeyIndexCompression.Old; _ulongs = null; if (withUlongs) { _ulongs = new ulong[reader.ReadVUInt32()]; for (var i = 0; i < _ulongs.Length; i++) { _ulongs[i] = reader.ReadVUInt64(); } } }