Top Constructors Methods
org.jruby.ext.ffi

public Class MemoryPointer

extends Pointer
Class Inheritance
Annotations
@JRubyClass
name:FFI::MemoryPointer
parent:FFI::Pointer
Imports
org.jruby.*, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.exceptions.RaiseException, org.jruby.runtime.Block, .ObjectAllocator, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.cli.Options

Constructor Summary

AccessConstructor and Description
public
MemoryPointer(Ruby runtime, RubyClass klass)

private
MemoryPointer(Ruby runtime, IRubyObject klass, MemoryIO io, long total, int typeSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv static MemoryPointer
allocate(Ruby runtime, int typeSize, int count, boolean clear)

public final IRubyObject
public final IRubyObject
public static RubyClass
public final IRubyObject
public static IRubyObject
private final IRubyObject
init(ThreadContext context, IRubyObject rbTypeSize, int count, int align, boolean clear, Block block)

public final IRubyObject
initialize(ThreadContext context, IRubyObject sizeArg, Block block)

public final IRubyObject
initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject count, Block block)

public final IRubyObject
initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject count, IRubyObject clear, Block block)

public IRubyObject
op_equal(ThreadContext context, IRubyObject obj)

Overrides org.jruby.ext.ffi.Pointer.op_equal.

Implements org.jruby.runtime.builtin.IRubyObject.op_equal.

rb_obj_equal Will by default use identity equality to compare objects.

public final String
toString()

Overrides org.jruby.RubyObject.toString.

The default toString method is just a wrapper that calls the Ruby "to_s" method.

Inherited from org.jruby.ext.ffi.Pointer:
addresscreatePointerClassgetAddressgetNullgetPointergetPointerClassinitializeinitializeinitialize_copynull_pordersizeslicesliceto_s

Constructor Detail

MemoryPointerback to summary
public MemoryPointer(Ruby runtime, RubyClass klass)
MemoryPointerback to summary
private MemoryPointer(Ruby runtime, IRubyObject klass, MemoryIO io, long total, int typeSize)

Method Detail

allocateback to summary
pack-priv static MemoryPointer allocate(Ruby runtime, int typeSize, int count, boolean clear)
autoreleaseback to summary
public final IRubyObject autorelease(ThreadContext context, IRubyObject release)
Annotations
@JRubyMethod
name:autorelease=
autorelease_pback to summary
public final IRubyObject autorelease_p(ThreadContext context)
Annotations
@JRubyMethod
name:autorelease?
createMemoryPointerClassback to summary
public static RubyClass createMemoryPointerClass(ThreadContext context, RubyModule FFI, RubyClass Pointer)
freeback to summary
public final IRubyObject free(ThreadContext context)
Annotations
@JRubyMethod
name:free
from_stringback to summary
public static IRubyObject from_string(ThreadContext context, IRubyObject klass, IRubyObject s)
Annotations
@JRubyMethod
name:from_string
meta:true
initback to summary
private final IRubyObject init(ThreadContext context, IRubyObject rbTypeSize, int count, int align, boolean clear, Block block)
initializeback to summary
public final IRubyObject initialize(ThreadContext context, IRubyObject sizeArg, Block block)
Annotations
@JRubyMethod
name:initialize
visibility:PRIVATE
initializeback to summary
public final IRubyObject initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject count, Block block)
Annotations
@JRubyMethod
name:initialize
visibility:PRIVATE
initializeback to summary
public final IRubyObject initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject count, IRubyObject clear, Block block)
Annotations
@JRubyMethod
name:initialize
visibility:PRIVATE
op_equalback to summary
public IRubyObject op_equal(ThreadContext context, IRubyObject obj)

Overrides org.jruby.ext.ffi.Pointer.op_equal.

Implements org.jruby.runtime.builtin.IRubyObject.op_equal.

Doc from org.jruby.RubyBasicObject.op_equal.

rb_obj_equal Will by default use identity equality to compare objects. This follows the Ruby semantics. The name of this method doesn't follow the convention because hierarchy problems

Annotations
@JRubyMethod
name:==
toStringback to summary
public final String toString()

Overrides org.jruby.RubyObject.toString.

Doc from org.jruby.RubyObject.toString.

The default toString method is just a wrapper that calls the Ruby "to_s" method.

Returns:String

string representation

Annotations
@Override