WriteVUInt32() public method

public WriteVUInt32 ( uint value ) : void
value uint
return void
示例#1
0
 internal void Store(AbstractBufferedWriter writer)
 {
     writer.WriteVUInt32(BindingId);
     writer.WriteVUInt32(ServiceId);
     writer.WriteVUInt32(MethodId);
     writer.WriteBool(OneWay);
 }
示例#2
0
 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);
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 internal void Save(AbstractBufferedWriter writer)
 {
     writer.WriteVUInt32((uint)FieldCount);
     for (int i = 0; i < FieldCount; i++)
     {
         this[i].Save(writer);
     }
 }
示例#6
0
 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);
 }
示例#7
0
 internal void WriteHeader(AbstractBufferedWriter writer)
 {
     writer.WriteByteArrayRaw(FileCollectionWithFileInfos.MagicStartOfFile);
     writer.WriteUInt8((byte) KVFileType.HashKeyIndex);
     writer.WriteVInt64(_subId);
     writer.WriteVInt64(_generation);
     writer.WriteVUInt32(_keyLen);
 }
示例#8
0
 internal void WriteHeader(AbstractBufferedWriter writer)
 {
     FileCollectionWithFileInfos.WriteHeader(writer, _guid);
     writer.WriteUInt8((byte) KVFileType.HashKeyIndex);
     writer.WriteVInt64(_subId);
     writer.WriteVInt64(_generation);
     writer.WriteVUInt32(_keyLen);
 }
示例#9
0
 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);
     }
 }
示例#10
0
 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);
     }
 }
示例#11
0
文件: TypeInf.cs 项目: Xamarui/BTDB
 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);
     }
 }
示例#12
0
文件: MethodInf.cs 项目: Xamarui/BTDB
 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);
     }
 }