static private WriteHeader ( AbstractBufferedWriter writer, Guid guid ) : void | ||
writer | AbstractBufferedWriter | |
guid | Guid | |
return | void |
public void WriteHeader(AbstractBufferedWriter writer) { FileCollectionWithFileInfos.WriteHeader(writer, _guid); writer.WriteUInt8((byte)KVFileType.PureValuesWithId); writer.WriteVInt64(_subId); writer.WriteVInt64(_generation); }
internal void WriteHeader(AbstractBufferedWriter writer) { FileCollectionWithFileInfos.WriteHeader(writer, _guid); writer.WriteUInt8((byte)KVFileType.TransactionLog); writer.WriteVInt64(_generation); writer.WriteVInt32((int)_previousFileId); }
internal void WriteHeader(ref SpanWriter writer) { FileCollectionWithFileInfos.WriteHeader(ref writer, _guid); writer.WriteUInt8((byte)KVFileType.HashKeyIndex); writer.WriteVInt64(_subId); writer.WriteVInt64(_generation); writer.WriteVUInt32(_keyLen); }
internal void WriteHeader(AbstractBufferedWriter writer) { FileCollectionWithFileInfos.WriteHeader(writer, _guid); writer.WriteUInt8((byte)KVFileType.ModernKeyIndex); writer.WriteVInt64(_generation); writer.WriteVUInt32(_trLogFileId); writer.WriteVUInt32(_trLogOffset); writer.WriteVUInt64((ulong)_keyValueCount); writer.WriteVUInt64(_commitUlong); writer.WriteUInt8((byte)_compressionType); }
internal void WriteHeader(ref SpanWriter writer) { FileCollectionWithFileInfos.WriteHeader(ref writer, _guid); writer.WriteUInt8((byte)KVFileType.ModernKeyIndexWithUlongs); writer.WriteVInt64(_generation); writer.WriteVUInt32(_trLogFileId); writer.WriteVUInt32(_trLogOffset); writer.WriteVUInt64((ulong)_keyValueCount); writer.WriteVUInt64(_commitUlong); writer.WriteUInt8((byte)_compressionType); var ulongCount = (uint)(_ulongs?.Length ?? 0); writer.WriteVUInt32(ulongCount); if (ulongCount > 0) { for (var i = 0; i < ulongCount; i++) { writer.WriteVUInt64(_ulongs ![i]);
internal void WriteHeader(AbstractBufferedWriter writer) { FileCollectionWithFileInfos.WriteHeader(writer, _guid); writer.WriteUInt8((byte)KVFileType.ModernKeyIndexWithUlongs); writer.WriteVInt64(_generation); writer.WriteVUInt32(_trLogFileId); writer.WriteVUInt32(_trLogOffset); writer.WriteVUInt64((ulong)_keyValueCount); writer.WriteVUInt64(_commitUlong); writer.WriteUInt8((byte)_compressionType); var ulongCount = _ulongs != null ? (uint)_ulongs.Length : 0; writer.WriteVUInt32(ulongCount); if (ulongCount > 0) { for (var i = 0; i < ulongCount; i++) { writer.WriteVUInt64(_ulongs[i]); } } }
public void WriteHeader(ref SpanWriter writer) { FileCollectionWithFileInfos.WriteHeader(ref writer, _guid); writer.WriteUInt8((byte)KVFileType.PureValues); writer.WriteVInt64(_generation); }