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); }
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); } }