131132133134135136137138139140141
ms.write(((index & 0x0f) << 4) | ((length & 0x0f) << 0)); } else if (sizeType == 2) { ms.write(index); ms.write(length); } else { ms.writeShort(index); ms.writeShort(length); } ms.write(frame.getData());
132133134135136137138139140141142
} else if (sizeType == 2) { ms.write(index); ms.write(length); } else { ms.writeShort(index); ms.writeShort(length); } ms.write(frame.getData()); byte[] data = ms.toByteArray();