Exemple #1
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteVaruint(Encoding.UTF8.GetByteCount(key)); _buffer.WriteString(key);
     _buffer.WriteBigEndianDouble(@value);
     _buffer.WriteVaruint(modifiers.Length); foreach (Modifier modifiersChild in modifiers)
     {
         modifiersChild.EncodeBody(_buffer);
     }
 }
Exemple #2
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteUuid(uuid);
     _buffer.WriteBigEndianDouble(amount);
     _buffer.WriteUbyte(operation);
 }