Package jnr.ffi.provider

Examples of jnr.ffi.provider.BoundedMemoryIO


    public Pointer allocateTemporary(int size) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, 8, true), 0, size);
    }

    public Pointer allocateTemporary(int size, boolean clear) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, 8, clear), 0, size);
    }
View Full Code Here


    public Pointer newPointer(long address) {
        return new DirectMemoryIO(runtime, address & addressMask);
    }

    public Pointer newPointer(long address, long size) {
        return new BoundedMemoryIO(new DirectMemoryIO(runtime, address & addressMask), 0, size);
    }
View Full Code Here

TOP

Related Classes of jnr.ffi.provider.BoundedMemoryIO

Copyright © 2018 www.massapicom. 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.