Examples of BoundedMemoryIO


Examples of jnr.ffi.provider.BoundedMemoryIO

    static final jnr.ffi.Pointer newPointer(int ptr) {
        return ptr != 0 ? new DirectMemoryIO(NativeRuntime.getInstance(), ptr) : null;
    }
   
    static final jnr.ffi.Pointer newPointer(long ptr, long size) {
        return ptr != 0 ? new BoundedMemoryIO(new DirectMemoryIO(NativeRuntime.getInstance(), ptr), 0, size) : null;
    }
View Full Code Here

Examples of jnr.ffi.provider.BoundedMemoryIO

    public Pointer allocate(int size) {
        return new ArrayMemoryIO(runtime, size);
    }

    public Pointer allocateDirect(int size) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, Math.min(size, 16), false), 0, size);
    }
View Full Code Here

Examples of jnr.ffi.provider.BoundedMemoryIO

    public Pointer allocateDirect(int size) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, Math.min(size, 16), false), 0, size);
    }

    public Pointer allocateDirect(int size, boolean clear) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, Math.min(size, 16), true), 0, size);
    }
View Full Code Here

Examples of jnr.ffi.provider.BoundedMemoryIO

    public Pointer allocateDirect(int size, boolean clear) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, Math.min(size, 16), true), 0, size);
    }

    public Pointer allocateTemporary(int size) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, Math.min(size, 16), true), 0, size);
    }
View Full Code Here

Examples of jnr.ffi.provider.BoundedMemoryIO

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

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

Examples of jnr.ffi.provider.BoundedMemoryIO

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

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

Examples of jnr.ffi.provider.BoundedMemoryIO

    static jnr.ffi.Pointer newPointer(jnr.ffi.Runtime runtime, int ptr) {
        return ptr != 0 ? new DirectMemoryIO(runtime, ptr) : null;
    }
   
    static jnr.ffi.Pointer newPointer(jnr.ffi.Runtime runtime, long ptr, long size) {
        return ptr != 0 ? new BoundedMemoryIO(new DirectMemoryIO(runtime, ptr), 0, size) : null;
    }
View Full Code Here

Examples of jnr.ffi.provider.BoundedMemoryIO

    public Pointer allocate(int size) {
        return new ArrayMemoryIO(runtime, size);
    }

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

Examples of jnr.ffi.provider.BoundedMemoryIO

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

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

Examples of jnr.ffi.provider.BoundedMemoryIO

    public Pointer allocateDirect(int size, boolean clear) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, 8, clear), 0, size);
    }

    public Pointer allocateTemporary(int size) {
        return new BoundedMemoryIO(TransientNativeMemory.allocate(runtime, size, 8, true), 0, size);
    }
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.