Examples of LongBuffer


Examples of java.nio.LongBuffer

        int offset = array.offset();
        array.setAll(LongArray.unsafeValueOf());
        assertArrayEquals(new long[]{}, array.toArray());
        assertEquals(0, array.length());
        assertEquals(offset, array.offset());
        LongBuffer buffer = array.buffer();
        buffer.rewind().limit(buffer.capacity());
        while (buffer.hasRemaining()) {
            assertEquals(0, buffer.get());
        }
    }
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.