Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IntBuffer buff = BufferUtils.createIntBuffer(8);
- // First I want it to contain [1, 1, 1, 1]
- buff.put(new int[]{1, 1, 1, 1});
- // Now I have to read this data, so I flip it
- buff.flip();
- // Now I want the buffer to contain [1, 1, 1, 1, 2, 2]
- //how? the limit is now 4, so I cannot write more than 4 elements...
Advertisement
Add Comment
Please, Sign In to add comment