Exemplo n.º 1
0
 public void Serialize(ref Span <byte> buffer)
 {
     SessionId.Serialize(ref buffer);
     BinSerialize.WritePackedUnsignedInteger(ref buffer, FieldId);
     BinSerialize.WritePackedUnsignedInteger(ref buffer, StartIndex);
     BinSerialize.WritePackedUnsignedInteger(ref buffer, Take);
 }
Exemplo n.º 2
0
 public void Serialize(ref Span <byte> buffer)
 {
     SessionId.Serialize(ref buffer);
     BinSerialize.WritePackedUnsignedInteger(ref buffer, Counter);
     BinSerialize.WriteByte(ref buffer, (byte)Flags);
     BinSerialize.WriteByte(ref buffer, (byte)Groups.Count);
     foreach (var group in Groups)
     {
         BinSerialize.WriteUShort(ref buffer, group);
     }
 }