6364656667686970717273
readPos = 2; } public ArrayBuffer getBuffer() { Uint8Array data = Uint8Array.create(msgSize+2); for(int i = 0; i < msgSize+2; i++) data.set(i, buffer.get(i)); return data.getBuffer(); }