Package org.jruby.ext.ffi

Examples of org.jruby.ext.ffi.Pointer$PointerAllocator


        return new Pointer(runtime,
                NativeMemoryIO.wrap(runtime, ((long) address) & 0xffffffffL));
    }

    public static IRubyObject newPointer32(Ruby runtime, int address) {
        return new Pointer(runtime,
                NativeMemoryIO.wrap(runtime, ((long) address) & 0xffffffffL));
    }
View Full Code Here


                NativeMemoryIO.wrap(runtime, ((long) address) & 0xffffffffL));
    }
   
    public static IRubyObject newPointer32(ThreadContext context, long address) {
        Ruby runtime = context.runtime;
        return new Pointer(runtime,
                NativeMemoryIO.wrap(runtime, address & 0xffffffffL));
    }
View Full Code Here

        return new Pointer(runtime,
                NativeMemoryIO.wrap(runtime, address & 0xffffffffL));
    }

    public static IRubyObject newPointer32(Ruby runtime, long address) {
        return new Pointer(runtime,
                NativeMemoryIO.wrap(runtime, address & 0xffffffffL));
    }
View Full Code Here

                NativeMemoryIO.wrap(runtime, address & 0xffffffffL));
    }
   
    public static IRubyObject newPointer64(ThreadContext context, long address) {
        Ruby runtime = context.runtime;
        return new Pointer(runtime, NativeMemoryIO.wrap(runtime, address));
    }
View Full Code Here

        Ruby runtime = context.runtime;
        return new Pointer(runtime, NativeMemoryIO.wrap(runtime, address));
    }

    public static IRubyObject newPointer64(Ruby runtime, long address) {
        return new Pointer(runtime, NativeMemoryIO.wrap(runtime, address));
    }
View Full Code Here

        if (!(args[0] instanceof Pointer)) {
            throw context.runtime.newTypeError(args[0], context.runtime.getFFI().pointerClass);
        }

        final Pointer address = (Pointer) args[0];
       
        if (!(args[1] instanceof Type)) {
            throw context.runtime.newTypeError("invalid return type");
        }
       
View Full Code Here

TOP

Related Classes of org.jruby.ext.ffi.Pointer$PointerAllocator

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.