Package com.netflix.zeno.fastblob.record

Examples of com.netflix.zeno.fastblob.record.SegmentedByteArray.copy()


                long pointer = populatedReverseKeys[i] >> 28;
                int length = VarInt.readVInt(arr, pointer);
                length += VarInt.sizeOfVInt(length);

                if(currentCopyPointer != pointer)
                    arr.copy(arr, pointer, currentCopyPointer, length);

                populatedReverseKeys[i] = populatedReverseKeys[i] << 36 | currentCopyPointer;

                currentCopyPointer += length;
            } else {
View Full Code Here


        SegmentedByteArray dest = new SegmentedByteArray(3);

        for(int i=0;i<(128-32);i++) {
            for(int j=0;j<(128-32);j++) {
                dest.copy(src, i, j, 32);

                for(int k=0;k<32;k++) {
                    Assert.assertEquals((byte)src.get(i+k), (byte)dest.get(j+k));
                }
            }
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.