hollow/src/main/java/com/netflix/hollow/core/memory/SegmentedByteArray.java
public void copy(ByteData src, long srcPos, long destPos, long length) {
        for(long i=0;i<length;i++) {
            set(destPos++, src.get(srcPos++));
        }
    }
public void copy(ByteData src, long srcPos, long destPos, long length) {
        for(long i=0;i<length;i++) {
            set(destPos++, src.get(srcPos++));
        }
    }
Copy bytes from another ByteData to this array.

@param src the source data
@param srcPos the position to begin copying from the source data
@param destPos the position to begin writing in this array
@param length the length of the data to copy