getArrayOfFloat32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfFloat64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfSigned16(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfSigned32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfSigned64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfSigned8(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfUnsigned16(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfUnsigned32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfUnsigned64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getArrayOfUnsigned8(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)getTaintedByteString(org.jruby.Ruby runtime, org.jruby.ext.ffi.MemoryIO io, long offset, int length)Reads a byte (binary) string from a memory object.
| name | type | description |
|---|---|---|
| runtime | org.jruby.Ruby | The ruby runtime |
| io | org.jruby.ext.ffi.MemoryIO | The memory object to read the string from |
| offset | long | The offset within the memory object to start reading |
| length | int | The number of bytes to read |
Returns: A ruby string
getTaintedString(org.jruby.Ruby runtime, org.jruby.ext.ffi.MemoryIO io, long offset)Gets a NUL terminated string from a memory object
| name | type | description |
|---|---|---|
| runtime | org.jruby.Ruby | The ruby runtime |
| io | org.jruby.ext.ffi.MemoryIO | The memory object to read the string from |
| offset | long | The offset within the memory object to start reading |
Returns: A ruby string
getTaintedString(org.jruby.Ruby runtime, org.jruby.ext.ffi.MemoryIO io, long offset, int length)Reads a NUL terminated string from a memory object
| name | type | description |
|---|---|---|
| runtime | org.jruby.Ruby | The ruby runtime |
| io | org.jruby.ext.ffi.MemoryIO | The memory object to read the string from |
| offset | long | The offset within the memory object to start reading |
| length | int | The maximum number of bytes to read |
Returns: A ruby string
newTaintedString(org.jruby.Ruby runtime, byte[] bytes)Creates a ruby string from a byte array
| name | type | description |
|---|---|---|
| runtime | org.jruby.Ruby | The ruby runtime |
| bytes | byte[] | The array to make into a ruby string. |
Returns: A ruby string.
putArrayOfFloat32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)putArrayOfFloat64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)