Package java.nio

Examples of java.nio.MappedByteBuffer.asReadOnlyBuffer()


        for (UUID referencedSegmentId : referencedSegmentIds) {
            rw.putLong(referencedSegmentId.getMostSignificantBits());
            rw.putLong(referencedSegmentId.getLeastSignificantBits());
        }

        ByteBuffer ro = rw.asReadOnlyBuffer();
        ro.limit(ro.position() + length);
        ro = ro.slice();

        rw.put(data, offset, 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.