コード例 #1
0
 /** Removes a packet from this chunk to read as a byte array. */
 protected byte[] getPacket() {
   return payload.dequeue();
 }
コード例 #2
0
 /** Does this page have any packets left to read? */
 protected boolean hasPacketsLeft() {
   return !payload.isEmpty();
 }
コード例 #3
0
 /**
  * Adds a new packet.
  *
  * @param bytes the byte packet to add.
  */
 protected void addPacket(byte[] bytes) {
   payload.enqueue(bytes);
 }