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); }
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)); } }
public void Deserialize(ref ReadOnlySpan <byte> buffer) { Uint1 = BinSerialize.ReadPackedUnsignedInteger(ref buffer); Double1 = BinSerialize.ReadDouble(ref buffer); String = BinSerialize.ReadString(ref buffer); }
protected override string DeserializeValue(ref ReadOnlySpan <byte> buffer) { return(BinSerialize.ReadString(ref buffer)); }
public override void Deserialize(ref ReadOnlySpan <byte> buffer) { base.Deserialize(ref buffer); RawValue = BinSerialize.ReadString(ref buffer); }