Exemplo n.º 1
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteUbyte(type);
     if (type == 4)
     {
         _buffer.WriteBigEndianUint(ipv4);
     }
     if (type == 6)
     {
         foreach (byte ipv6Child in ipv6)
         {
             _buffer.WriteUbyte(ipv6Child);
         }
     }
     if (type == 6)
     {
         foreach (byte unknown3Child in unknown3)
         {
             _buffer.WriteUbyte(unknown3Child);
         }
     }
     _buffer.WriteBigEndianUshort(port);
 }
Exemplo n.º 2
0
 protected override void EncodeImpl(sul.Utils.Buffer _buffer)
 {
     _buffer.WriteBigEndianUint(count);
     _buffer.WriteBigEndianUshort(id);
     _buffer.WriteBigEndianUint(order);
 }