Package xbird.util.struct

Examples of xbird.util.struct.LongRangeSet.addRange()


        long lastPage = directToPageOffset(last);
        LongRangeSet ranges = serContext.ranges();
        if(ranges.isEmpty()) {
            bindSerializationContext(serContext);
        }
        ranges.addRange(firstPage, lastPage + PAGE_SIZE);
        final Set<Long> textBufferAddrs = serContext.textBufferAddresses();
        for(long tb : textBlocks) {
            textBufferAddrs.add(tb);
        }
    }
View Full Code Here


        long lastPage = directToPageOffset(last);
        LongRangeSet ranges = serContext.ranges();
        if(ranges.isEmpty()) {
            bindSerializationContext(serContext);
        }
        ranges.addRange(firstPage, lastPage + PAGE_SIZE);
        final Set<Long> textBufferAddrs = serContext.textBufferAddresses();
        for(long tb : textBlocks) {
            textBufferAddrs.add(tb);
        }
    }
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.