Ejemplo n.º 1
0
 void Packetinterface.decode(byte[] packet, ref int offset)
 {
     ip_     = PacketUtil.decodestring(packet, ref offset);
     port_   = PacketUtil.decodeUInt32(packet, ref offset);
     name_   = PacketUtil.decodestring(packet, ref offset);
     pointX_ = PacketUtil.decodefloat(packet, ref offset);
     pointY_ = PacketUtil.decodefloat(packet, ref offset);
 }