949596979899100101102103104
int availLength = (length - MINIMUM_LENGTH); this.queues.clear(); while (availLength > 0) { OFPacketQueue queue = new OFPacketQueue(); queue.readFrom(data); queues.add(queue); availLength -= queue.getLength(); } }