This is an abstract class that defines Pointer operations
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public static RubyClass | |
| public final long | Returns: A long containing the native memory address.Gets the native memory address of this pointer. |
| public static final Pointer | |
| protected Pointer | getPointer(Ruby runtime, long offset)
Implements abstract org.
|
| public static final RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original other)Overrides org. Initializes this object as a copy of the original, that is the parameter to this object. |
| public IRubyObject | Returns: true if the address is NULL.the thread context context)Tests if this |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject obj)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public final AbstractMemory | |
| public static IRubyObject | |
| protected AbstractMemory | |
| protected AbstractMemory | slice(Ruby runtime, long offset, long size)
Implements abstract org.
|
| public IRubyObject |
| Pointer | back to summary |
|---|---|
| public Pointer(Ruby runtime, RubyClass klazz) | |
| Pointer | back to summary |
|---|---|
| public Pointer(Ruby runtime, MemoryIO io) | |
| Pointer | back to summary |
|---|---|
| public Pointer(Ruby runtime, MemoryIO io, long size, int typeSize) | |
| Pointer | back to summary |
|---|---|
| protected Pointer(Ruby runtime, RubyClass klass, MemoryIO io) | |
| Pointer | back to summary |
|---|---|
| protected Pointer(Ruby runtime, RubyClass klass, MemoryIO io, long size) | |
| Pointer | back to summary |
|---|---|
| protected Pointer(Ruby runtime, RubyClass klass, MemoryIO io, long size, int typeSize) | |
| address | back to summary |
|---|---|
public IRubyObject address(ThreadContext context)
| |
| createPointerClass | back to summary |
|---|---|
| public static RubyClass createPointerClass(ThreadContext context, RubyModule FFI, RubyClass AbstractMemory) | |
| getAddress | back to summary |
|---|---|
| public final long getAddress() Gets the native memory address of this pointer.
| |
| getNull | back to summary |
|---|---|
| public static final Pointer getNull(Ruby runtime) | |
| getPointer | back to summary |
|---|---|
| protected Pointer getPointer(Ruby runtime, long offset) Implements abstract org. | |
| getPointerClass | back to summary |
|---|---|
| public static final RubyClass getPointerClass(Ruby runtime) | |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject address)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject type, IRubyObject address)
| |
| initialize_copy | back to summary |
|---|---|
| public IRubyObject initialize_copy(ThreadContext context, IRubyObject other) Overrides org. Doc from org. Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.
| |
| null_p | back to summary |
|---|---|
| public IRubyObject null_p(ThreadContext context) Tests if this
| |
| op_equal | back to summary |
|---|---|
| public IRubyObject op_equal(ThreadContext context, IRubyObject obj) Overrides org. Implements org. Doc from org. 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
| |
| order | back to summary |
|---|---|
| public final AbstractMemory order(Ruby runtime, ByteOrder order) Implements abstract org. | |
| size | back to summary |
|---|---|
public static IRubyObject size(ThreadContext context, IRubyObject recv)
| |
| slice | back to summary |
|---|---|
| protected AbstractMemory slice(Ruby runtime, long offset) Implements abstract org.
| |
| slice | back to summary |
|---|---|
| protected AbstractMemory slice(Ruby runtime, long offset, long size) Implements abstract org.
| |
| to_s | back to summary |
|---|---|
| public IRubyObject to_s(ThreadContext context) Overrides org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Arity | |
| private final Pointer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | call(ThreadContext
The thread context for the currently executing thread context, IRubyObject The 'self' or 'receiver' object to use for this call self, RubyModule The Ruby class against which this method is binding clazz, String The incoming name used to invoke this method name, IRubyObject[] The argument list to this invocation args, Block The block passed to this invocation block)Implements abstract org. The minimum 'call' method required for a dynamic method handle. |
| public IRubyObject | call(ThreadContext context, IRubyObject self, RubyModule klazz, String name)
Overrides org.
|
| public DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| ARITY | back to summary |
|---|---|
| private static final Arity ARITY | |
| nullPointer | back to summary |
|---|---|
| private final Pointer nullPointer | |
| NilToPointerMethod | back to summary |
|---|---|
| private NilToPointerMethod(RubyModule implementationClass, Pointer nullPointer, String name) | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) Implements abstract org. Doc from org. The minimum 'call' method required for a dynamic method handle. Subclasses must implement this method, but may implement the other signatures to provide faster, non-boxing call paths. Typically subclasses will implement this method to check variable arity calls, then performing a specific-arity invocation to the appropriate method or performing variable-arity logic in-line.
| |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name) Overrides org.
| |
| dup | back to summary |
|---|---|
| public DynamicMethod dup() Implements abstract org. Doc from org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. It is not required that this method produce a new object if the semantics of the DynamicMethod subtype do not require such.
| |