protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVarint(rotationAndIcon); _buffer.WriteUbyte(position.Item1); _buffer.WriteUbyte(position.Item2); _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(label)); _buffer.WriteString(label); _buffer.WriteLittleEndianUint(color); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name); _buffer.WriteLittleEndianUint(type); _buffer.WriteBool(optional); }
protected override void EncodeImpl(sul.Utils.Buffer _buffer) { _buffer.WriteLittleEndianUint(chain.Length); _buffer.WriteBytes(chain); _buffer.WriteLittleEndianUint(clientData.Length); _buffer.WriteBytes(clientData); }