Exemple #1
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(name)); _buffer.WriteString(name);
     _buffer.WriteUbyte(type);
     if (type == 1)
     {
         _buffer.WriteBool(booleanValue);
     }
     if (type == 2)
     {
         _buffer.WriteBigEndianInt(integerValue);
     }
     if (type == 3)
     {
         _buffer.WriteLittleEndianFloat(floatingValue);
     }
 }