Examples of claimChildResource()


Examples of org.jnode.system.resource.MemoryResource.claimChildResource()

    static Pointer adjustAddress(Pointer address, int offset) {
        final MemoryResource res = ((MemoryRawData) address).resource;
        final Extent size = res.getSize().sub(offset);
        try {
            return new MemoryRawData(res.claimChildResource(Offset.fromIntZeroExtend(offset), size, true));
        } catch (ResourceNotFreeException ex) {
            throw new Error("Cannot adjustAddress", ex);
        }
    }
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.