Package | Description |
---|---|
org.jruby.ext.ffi | |
org.jruby.ext.ffi.jffi |
Modifier and Type | Class and Description |
---|---|
class |
ArrayMemoryIO |
class |
FreedMemoryIO |
class |
InvalidMemoryIO
An implementation of MemoryIO that throws an exception on any access.
|
class |
NullMemoryIO
An implementation of MemoryIO that throws an exception on any access.
|
class |
SwappedMemoryIO |
Modifier and Type | Method and Description |
---|---|
MemoryIO |
NoImplFactory.allocateDirectMemory(Ruby runtime,
int size,
boolean clear) |
abstract MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
NoImplFactory.allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
abstract MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
protected MemoryIO |
Struct.allocateMemoryIO() |
protected abstract MemoryIO |
MemoryObject.allocateMemoryIO() |
protected MemoryIO |
AbstractMemory.allocateMemoryIO() |
MemoryIO |
NoImplFactory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
abstract MemoryIO |
Factory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates transient native memory (not from C heap) and wraps it in a MemoryIO accessor.
|
abstract MemoryIO |
MemoryIO.dup()
Duplicates this MemoryIO, including its contents.
|
MemoryIO |
InvalidMemoryIO.dup() |
MemoryIO |
MemoryObject.getMemoryIO()
Gets the memory I/O accessor to read/write to the memory area.
|
MemoryIO |
SwappedMemoryIO.getMemoryIO(long offset) |
abstract MemoryIO |
MemoryIO.getMemoryIO(long offset)
Reads a pointer value at the specified offset within the memory area, and
wraps it in an abstract memory accessor.
|
MemoryIO |
InvalidMemoryIO.getMemoryIO(long offset) |
MemoryIO |
ArrayMemoryIO.getMemoryIO(long offset) |
protected MemoryIO |
MemoryObject.setMemoryIO(MemoryIO memory)
Replaces the native memory object backing this ruby memory object
|
abstract MemoryIO |
MemoryIO.slice(long offset)
Creates a new MemoryIO pointing to a subset of the memory area of this
MemoryIO.
|
MemoryIO |
InvalidMemoryIO.slice(long offset) |
abstract MemoryIO |
MemoryIO.slice(long offset,
long size)
Creates a new MemoryIO pointing to a subset of the memory area of this
MemoryIO.
|
MemoryIO |
InvalidMemoryIO.slice(long offset,
long size) |
MemoryIO |
NoImplFactory.wrapDirectMemory(Ruby runtime,
long address) |
abstract MemoryIO |
Factory.wrapDirectMemory(Ruby runtime,
long address)
Wraps a native C memory address in a MemoryIO accessor.
|
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
MemoryUtil.getArrayOfFloat32(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfFloat64(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned16(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned32(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned64(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned8(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned16(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned32(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned64(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned8(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static RubyString |
MemoryUtil.getTaintedByteString(Ruby runtime,
MemoryIO io,
long offset,
int length)
Reads a byte (binary) string from a memory object.
|
static IRubyObject |
MemoryUtil.getTaintedString(Ruby runtime,
MemoryIO io,
long offset)
Gets a NUL terminated string from a memory object
|
static IRubyObject |
MemoryUtil.getTaintedString(Ruby runtime,
MemoryIO io,
long offset,
int length)
Reads a NUL terminated string from a memory object
|
static void |
MemoryUtil.putArrayOfFloat32(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfFloat64(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned16(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned32(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned64(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned8(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned16(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned32(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned64(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned8(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
void |
SwappedMemoryIO.putMemoryIO(long offset,
MemoryIO value) |
abstract void |
MemoryIO.putMemoryIO(long offset,
MemoryIO value)
Writes a pointer value to the memory area at the specified offset.
|
void |
InvalidMemoryIO.putMemoryIO(long offset,
MemoryIO value) |
void |
ArrayMemoryIO.putMemoryIO(long offset,
MemoryIO value) |
protected MemoryIO |
MemoryObject.setMemoryIO(MemoryIO memory)
Replaces the native memory object backing this ruby memory object
|
Constructor and Description |
---|
AbstractInvoker(Ruby runtime,
RubyClass klass,
int arity,
MemoryIO io)
Creates a new AbstractInvoker instance.
|
AbstractMemory(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size) |
AbstractMemory(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size,
int typeSize) |
Pointer(Ruby runtime,
MemoryIO io) |
Pointer(Ruby runtime,
MemoryIO io,
long size,
int typeSize) |
Pointer(Ruby runtime,
RubyClass klass,
MemoryIO io) |
Pointer(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size) |
Pointer(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size,
int typeSize) |
Modifier and Type | Class and Description |
---|---|
class |
CodeMemoryIO
Representation of code (executable) memory blocks
|
Modifier and Type | Method and Description |
---|---|
MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
Factory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
static MemoryIO |
JITRuntime.convertToPointerMemoryIO(ThreadContext context,
IRubyObject parameter,
CachingCallSite callSite) |
static MemoryIO |
JITRuntime.convertToStringMemoryIO(IRubyObject parameter,
ThreadContext context,
CachingCallSite callSite) |
static MemoryIO |
JITRuntime.convertToTransientStringMemoryIO(IRubyObject parameter,
ThreadContext context,
CachingCallSite callSite) |
MemoryIO |
StringParameterStrategy.getMemoryIO(Object parameter) |
abstract MemoryIO |
PointerParameterStrategy.getMemoryIO(Object parameter) |
MemoryIO |
DelegatingPointerParameterStrategy.getMemoryIO(Object parameter) |
static MemoryIO |
JITRuntime.getPointerMemoryIO(IRubyObject parameter) |
static MemoryIO |
JITRuntime.lookupPointerMemoryIO(IRubyObject parameter) |
MemoryIO |
Factory.wrapDirectMemory(Ruby runtime,
long address) |
Modifier and Type | Method and Description |
---|---|
static PointerParameterStrategy |
JITRuntime.getMemoryIOStrategy(MemoryIO memory) |
Constructor and Description |
---|
DynamicLibrary.Symbol(Ruby runtime,
DynamicLibrary library,
String name,
MemoryIO io) |
Copyright © 2001-2015 JRuby. All Rights Reserved.