Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name);
     _buffer.WriteLittleEndianUint(type);
     _buffer.WriteBool(optional);
 }
Ejemplo n.º 3
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteLittleEndianUint(chain.Length); _buffer.WriteBytes(chain);
     _buffer.WriteLittleEndianUint(clientData.Length); _buffer.WriteBytes(clientData);
 }