| Modifier and Type | Field and Description |
|---|---|
| public static final int | IN
Indicates that the Buffer is used for data copied IN to native memory |
| private int | |
| public static final int | OUT
Indicates that the Buffer is used for data copied OUT from native memory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Buffer | |
| public static Buffer | |
| public static Buffer | |
| public static Buffer | allocateInOut(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg)
|
| public static Buffer | |
| public static Buffer | |
| public static Buffer | allocateInput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg)
|
| private static MemoryIO | |
| public static Buffer | |
| public static Buffer | |
| public static Buffer | allocateOutput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg)
|
| public static RubyClass | |
| private static final int | |
| public int | |
| protected Pointer | getPointer(Ruby runtime, long offset)
Implements abstract org.
|
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg, Block block)
|
| 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 | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public final AbstractMemory | |
| protected AbstractMemory | |
| protected AbstractMemory | slice(Ruby runtime, long offset, long size)
Implements abstract org.
|
| IN | back to summary |
|---|---|
| public static final int IN Indicates that the Buffer is used for data copied IN to native memory | |
| inout | back to summary |
|---|---|
| private int inout | |
| OUT | back to summary |
|---|---|
| public static final int OUT Indicates that the Buffer is used for data copied OUT from native memory | |
| Buffer | back to summary |
|---|---|
| public Buffer(Ruby runtime, RubyClass klass) | |
| Buffer | back to summary |
|---|---|
| public Buffer(Ruby runtime, int size) | |
| Buffer | back to summary |
|---|---|
| public Buffer(Ruby runtime, int size, int flags) | |
| Buffer | back to summary |
|---|---|
| private Buffer(Ruby runtime, IRubyObject klass, MemoryIO io, long size, int typeSize, int inout) | |
| allocate | back to summary |
|---|---|
| private static Buffer allocate(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, int count, int flags) | |
| allocateInOut | back to summary |
|---|---|
public static Buffer allocateInOut(ThreadContext context, IRubyObject recv, IRubyObject sizeArg)
| |
| allocateInOut | back to summary |
|---|---|
public static Buffer allocateInOut(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject arg2)
| |
| allocateInOut | back to summary |
|---|---|
public static Buffer allocateInOut(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg)
| |
| allocateInput | back to summary |
|---|---|
public static Buffer allocateInput(ThreadContext context, IRubyObject recv, IRubyObject arg)
| |
| allocateInput | back to summary |
|---|---|
public static Buffer allocateInput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject arg2)
| |
| allocateInput | back to summary |
|---|---|
public static Buffer allocateInput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg)
| |
| allocateMemoryIO | back to summary |
|---|---|
| private static MemoryIO allocateMemoryIO(Ruby runtime, int size) | |
| allocateOutput | back to summary |
|---|---|
public static Buffer allocateOutput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg)
| |
| allocateOutput | back to summary |
|---|---|
public static Buffer allocateOutput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject arg2)
| |
| allocateOutput | back to summary |
|---|---|
public static Buffer allocateOutput(ThreadContext context, IRubyObject recv, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg)
| |
| createBufferClass | back to summary |
|---|---|
| public static RubyClass createBufferClass(ThreadContext context, RubyModule FFI, RubyClass AbstractMemory) | |
| getCount | back to summary |
|---|---|
| private static final int getCount(ThreadContext context, IRubyObject countArg) | |
| getInOutFlags | back to summary |
|---|---|
| public int getInOutFlags() | |
| getPointer | back to summary |
|---|---|
| protected Pointer getPointer(Ruby runtime, long offset) Implements abstract org. | |
| init | back to summary |
|---|---|
| private IRubyObject init(ThreadContext context, IRubyObject rbTypeSize, int count, int flags, Block block) | |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject sizeArg, Block block)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject arg2, Block block)
| |
| initialize | back to summary |
|---|---|
public IRubyObject initialize(ThreadContext context, IRubyObject sizeArg, IRubyObject countArg, IRubyObject clearArg, Block block)
| |
| 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.
| |
| inspect | back to summary |
|---|---|
| public IRubyObject inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| order | back to summary |
|---|---|
| public final AbstractMemory order(Ruby runtime, ByteOrder order) Implements abstract org. | |
| 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. | |