internal void Store(AbstractBufferedWriter writer) { writer.WriteVUInt32(BindingId); writer.WriteVUInt32(ServiceId); writer.WriteVUInt32(MethodId); writer.WriteBool(OneWay); }
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 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(AbstractBufferedWriter writer) { FileCollectionWithFileInfos.WriteHeader(writer, _guid); var withCommitUlong = _commitUlong != 0; writer.WriteUInt8((byte)(withCommitUlong ? KVFileType.KeyIndexWithCommitUlong : KVFileType.KeyIndex)); writer.WriteVInt64(_generation); writer.WriteVUInt32(_trLogFileId); writer.WriteVUInt32(_trLogOffset); writer.WriteVUInt64((ulong)_keyValueCount); if (withCommitUlong) writer.WriteVUInt64(_commitUlong); }
internal void Save(AbstractBufferedWriter writer) { writer.WriteVUInt32((uint)FieldCount); for (int i = 0; i < FieldCount; i++) { this[i].Save(writer); } }
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) { FileCollectionWithFileInfos.WriteHeader(writer, _guid); writer.WriteUInt8((byte) KVFileType.HashKeyIndex); writer.WriteVInt64(_subId); writer.WriteVInt64(_generation); writer.WriteVUInt32(_keyLen); }
public void Persist(AbstractBufferedWriter writer, Action<AbstractBufferedWriter, ITypeDescriptor> nestedDescriptorPersistor) { writer.WriteString(_name); writer.WriteVUInt32((_signed ? 1u : 0) + (_flags ? 2u : 0) + 4u * (uint)_pairs.Count); foreach (var pair in _pairs) { writer.WriteString(pair.Key); if (_signed) writer.WriteVInt64((long)pair.Value); else writer.WriteVUInt64(pair.Value); } }
public void Persist(AbstractBufferedWriter writer, Action<AbstractBufferedWriter, ITypeDescriptor> nestedDescriptorPersistor) { writer.WriteString(Name); writer.WriteVUInt32((uint)_fields.Count); foreach (var pair in _fields) { writer.WriteString(pair.Key); nestedDescriptorPersistor(writer, pair.Value); } }
public void Store(AbstractBufferedWriter writer) { writer.WriteString(_name); writer.WriteVUInt32((uint)_methodInfs.Length); foreach (var methodInf in _methodInfs) { methodInf.Store(writer); } writer.WriteVUInt32((uint)PropertyInfs.Length); foreach (var propertyInf in PropertyInfs) { propertyInf.Store(writer); } }
public void Store(AbstractBufferedWriter writer) { writer.WriteString(_name); writer.WriteString(_ifaceName); if (_resultFieldHandler != null) { writer.WriteString(_resultFieldHandler.Name); writer.WriteByteArray(_resultFieldHandler.Configuration); } else { writer.WriteString(null); } writer.WriteVUInt32((uint)_parameters.Length); foreach (var parameter in _parameters) { parameter.Store(writer); } }