コード例 #1
0
  public static Packet populatePacket(PacketYAFM packet) {
    byte[] d = packet.populate();

    Packet250CustomPayload p = new Packet250CustomPayload();
    p.channel = Reference.MOD_CHANNEL;
    p.data = d;
    p.length = d.length;
    p.isChunkDataPacket = packet.isChunkDataPacket;

    return p;
  }
コード例 #2
0
 public static PacketYAFM reconstructPacket(Packet250CustomPayload packet) {
   return PacketYAFM.reconstruct(packet.data);
 }