Exemplo n.º 1
0
 public void Deserialize(ref ReadOnlySpan <byte> buffer)
 {
     Comment    = BinSerialize.ReadString(ref buffer);
     Version    = BinSerialize.ReadByte(ref buffer);
     Hash       = BinSerialize.ReadUInt(ref buffer);
     ItemsCount = BinSerialize.ReadInt(ref buffer);
 }
Exemplo n.º 2
0
        public override void Deserialize(ref ReadOnlySpan <byte> buffer)
        {
            base.Deserialize(ref buffer);
            var count = BinSerialize.ReadPackedUnsignedInteger(ref buffer);

            _list = new List <string>((int)count);
            for (var i = 0; i < count; i++)
            {
                _list.Add(BinSerialize.ReadString(ref buffer));
            }
        }
Exemplo n.º 3
0
 public void Deserialize(ref ReadOnlySpan <byte> buffer)
 {
     Uint1   = BinSerialize.ReadPackedUnsignedInteger(ref buffer);
     Double1 = BinSerialize.ReadDouble(ref buffer);
     String  = BinSerialize.ReadString(ref buffer);
 }
Exemplo n.º 4
0
 protected override string DeserializeValue(ref ReadOnlySpan <byte> buffer)
 {
     return(BinSerialize.ReadString(ref buffer));
 }
Exemplo n.º 5
0
 public override void Deserialize(ref ReadOnlySpan <byte> buffer)
 {
     base.Deserialize(ref buffer);
     RawValue = BinSerialize.ReadString(ref buffer);
 }