public static byte[] getBytesFromPacket(Packet250CustomPayload packet) {
return packet.c;
}
public static Packet250CustomPayload newPayloadPacket(String name, int len, byte[] data) {
Packet250CustomPayload packet = new Packet250CustomPayload();
packet.a = name;
packet.b = len;
packet.c = data;
return packet;
}