The limit is set to the current position, then the position is set to zero, and the mark is cleared.
The content of this buffer is not changed.
237238239240241242243244245246247
buf = factory.newInstance(); buf.position(5); buf.mark(); buf.position(6); h.check(buf.flip(), buf, "flip: buf.flip()"); checkStatus(h, buf, "flip", 10, 6, true, 6, 0); try { buf.reset(); h.check(false, "flip: mark not invalidated");
buf = factory.newInstance(); buf.position(5); buf.mark(); buf.position(6); h.check(buf.flip(), buf, "flip: buf.flip()"); checkStatus(h, buf, "flip", 20, 6, true, 6, 0); try { buf.reset(); h.check(false, "flip: mark not invalidated");
276277278279280281282283284285286
default: throw new UnsupportedOperationException("incompatible or unknown type :" + tex.getPixelBufferDataTypeName()); } } } newData.flip(); Buffer pixelBuffer = newData; return new Sf3Texture3D(hashCode, pixelBuffer, EXTabgr, srcSize.width, srcSize.height, depth, bands); } private float pty = .5f;
176177178179180181182183184185186
modifiedIndexes.clear(); LOGGER.finer("Flipping index order."); switch (mesh.getMode()) { case Points: cloneIndexes.flip(); break; case Lines: for (int i = 0; i < cloneIndexes.limit(); i += 2) { if (cloneIndexes instanceof ShortBuffer) { short index = ((ShortBuffer) cloneIndexes).get(i + 1);