internal void WriteHeader(AbstractBufferedWriter writer) { writer.WriteByteArrayRaw(FileCollectionWithFileInfos.MagicStartOfFile); writer.WriteUInt8((byte)KVFileType.TransactionLog); writer.WriteVInt64(_generation); writer.WriteVInt32((int) _previousFileId); }
public void WriteHeader(AbstractBufferedWriter writer) { writer.WriteByteArrayRaw(FileCollectionWithFileInfos.MagicStartOfFile); writer.WriteUInt8((byte)KVFileType.PureValuesWithId); writer.WriteVInt64(_subId); writer.WriteVInt64(_generation); }
internal void WriteHeader(AbstractBufferedWriter writer) { writer.WriteByteArrayRaw(DiskChunkCache.MagicStartOfFile); writer.WriteUInt8((byte)DiskChunkFileType.HashIndex); writer.WriteVInt64(_generation); writer.WriteVUInt32((uint)KeySize); writer.WriteVUInt64((ulong)KeyValueCount); }
internal void WriteHeader(AbstractBufferedWriter writer) { writer.WriteByteArrayRaw(FileCollectionWithFileInfos.MagicStartOfFile); writer.WriteUInt8((byte) KVFileType.HashKeyIndex); writer.WriteVInt64(_subId); writer.WriteVInt64(_generation); writer.WriteVUInt32(_keyLen); }
internal void WriteHeader(AbstractBufferedWriter writer) { writer.WriteByteArrayRaw(FileCollectionWithFileInfos.MagicStartOfFile); writer.WriteUInt8((byte)KVFileType.KeyIndex); writer.WriteVInt64(_generation); writer.WriteVUInt32(_trLogFileId); writer.WriteVUInt32(_trLogOffset); writer.WriteVUInt64((ulong)_keyValueCount); }
internal static void WriteHeader(AbstractBufferedWriter writer, Guid? guid) { if (guid.HasValue) { writer.WriteByteArrayRaw(MagicStartOfFileWithGuid); writer.WriteGuid(guid.Value); } else { writer.WriteByteArrayRaw(MagicStartOfFile); } }
public void WriteHeader(AbstractBufferedWriter writer) { writer.WriteByteArrayRaw(DiskChunkCache.MagicStartOfFile); writer.WriteUInt8((byte)DiskChunkFileType.PureValues); writer.WriteVInt64(_generation); }