Advertisement
Tyluur

Untitled

Jul 2nd, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. /*
  2. * The final data being written to the client.
  3. */
  4. buffer.flip();
  5. final IoBuffer finalBuffer = IoBuffer.allocate(buffer.limit() + 3);
  6. finalBuffer.put((byte) 0);
  7. finalBuffer.putShort((short) buffer.limit());
  8. finalBuffer.put(buffer);
  9. finalBuffer.flip();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement