Package org.apache.derby.impl.io.vfmem

Examples of org.apache.derby.impl.io.vfmem.BlockedByteArray.writeBytes()


        assertEquals(10L, src.length());
        byte[] bytes = new byte[4096];
        Arrays.fill(bytes, (byte)7);
        src.writeBytes(0L, bytes, 0, bytes.length);
        assertEquals(bytes.length, src.length());
        src.writeBytes(bytes.length, bytes, 0, bytes.length);
        assertEquals(2*bytes.length, src.length());

        // Test setLength
        src.setLength(55555);
        assertEquals(55555, src.length());
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.