139140141142143144145146147148149
data.put(buf); } data.flip(); BinkpFrame frame; if (command) { BinkpCommand cmd = BinkpProtocolTools.getCommand(data .get()); if (data.get(len - 1) == 0) { len--; } byte[] ndata = new byte[len - 1];
124125126127128129130131132133134
data.put(buf); } data.flip(); BinkpFrame frame; if (command) { BinkpCommand cmd = BinkpProtocolTools .getCommand(data.get()); if (data.get(len - 1) == 0) { len--; } byte[] ndata = new byte[len - 1];
135136137138139140141142143144145
len += readOrDie(data, channel); } data.flip(); if ((header & 0x8000) >= 0x8000) { // command BinkpCommand cmd = getCommand(data.get()); if (datalen > 1) { if (data.get(datalen - 1) == 0) { datalen--; } byte[] buf = new byte[datalen - 1];