Package java.nio

Examples of java.nio.MappedByteBuffer.flip()


        mbb.putInt(1, 1);
        mbb.position(50);
        mbb.putInt(50);

        mbb.flip();
        mbb.get();
        assertEquals(1, mbb.getInt());

        mbb.position(50);
        assertEquals(50, mbb.getInt());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.