Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * The final data being written to the client.
- */
- buffer.flip();
- final IoBuffer finalBuffer = IoBuffer.allocate(buffer.limit() + 3);
- finalBuffer.put((byte) 0);
- finalBuffer.putShort((short) buffer.limit());
- finalBuffer.put(buffer);
- finalBuffer.flip();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement