jruby/docs BETA
Navigation
org.jruby.ext.ffi 33
C AbstractInvoker
C AbstractMemory
I AllocatedDirectMemoryIO
C ArrayMemoryIO
C AutoPointer
C Buffer
C CallbackInfo
C CallbackManager
C DataConverter
C Enums
C FFI
C FFIService
C Factory
C FreedMemoryIO
C IOModule
C InvalidMemoryIO
C MappedType
C MemoryIO
C MemoryObject
C MemoryPointer
C MemoryUtil
E NativeType
C NoImplFactory
C NullMemoryIO
C Platform
C Pointer
C Struct
C StructByValue
C StructLayout
C SwappedMemoryIO
C Type
C TypeResolver
C Util
MemoryUtil — members 26
M get_array_of_float32(context, io, offset, count) IRubyObject
M get_array_of_float64(context, io, offset, count) IRubyObject
M get_array_of_signed16(context, io, offset, count) IRubyObject
M get_array_of_signed32(context, io, offset, count) IRubyObject
M get_array_of_signed64(context, io, offset, count) IRubyObject
M get_array_of_signed8(context, io, offset, count) IRubyObject
M get_array_of_unsigned16(context, io, offset, count) IRubyObject
M get_array_of_unsigned32(context, io, offset, count) IRubyObject
M get_array_of_unsigned64(context, io, offset, count) IRubyObject
M get_array_of_unsigned8(context, io, offset, count) IRubyObject
M get_tainted_byte_string(runtime, io, offset, length) RubyString
M get_tainted_string(runtime, io, offset) IRubyObject
M get_tainted_string(runtime, io, offset, length) IRubyObject
M new_tainted_string(runtime, bytes) RubyString
C put_array_of_float32(io, offset, ary)
C put_array_of_float32(context, io, offset, ary)
C put_array_of_float64(io, offset, ary)
C put_array_of_float64(context, io, offset, ary)
C put_array_of_signed16(io, offset, ary)
C put_array_of_signed32(io, offset, ary)
C put_array_of_signed64(io, offset, ary)
C put_array_of_signed8(io, offset, ary)
C put_array_of_unsigned16(io, offset, ary)
C put_array_of_unsigned32(io, offset, ary)
C put_array_of_unsigned64(io, offset, ary)
C put_array_of_unsigned8(io, offset, ary)

org.jruby.ext.ffi.MemoryUtil

class final 26 members

Class Methods

get_array_of_float32

IRubyObject get_array_of_float32 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfFloat32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_float64

IRubyObject get_array_of_float64 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfFloat64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_signed16

IRubyObject get_array_of_signed16 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfSigned16(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_signed32

IRubyObject get_array_of_signed32 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfSigned32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_signed64

IRubyObject get_array_of_signed64 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfSigned64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_signed8

IRubyObject get_array_of_signed8 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfSigned8(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_unsigned16

IRubyObject get_array_of_unsigned16 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfUnsigned16(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_unsigned32

IRubyObject get_array_of_unsigned32 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfUnsigned32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_unsigned64

IRubyObject get_array_of_unsigned64 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfUnsigned64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_array_of_unsigned8

IRubyObject get_array_of_unsigned8 ( ThreadContext context, MemoryIO io, long offset, int count )
Java: getArrayOfUnsigned8(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, int count)

get_tainted_byte_string

RubyString get_tainted_byte_string ( Ruby runtime, MemoryIO io, long offset, int length )
Java: getTaintedByteString(org.jruby.Ruby runtime, org.jruby.ext.ffi.MemoryIO io, long offset, int length)

Reads a byte (binary) string from a memory object.

nametypedescription
runtimeorg.jruby.RubyThe ruby runtime
ioorg.jruby.ext.ffi.MemoryIOThe memory object to read the string from
offsetlongThe offset within the memory object to start reading
lengthintThe number of bytes to read

Returns: A ruby string

get_tainted_string

IRubyObject get_tainted_string ( Ruby runtime, MemoryIO io, long offset )
Java: getTaintedString(org.jruby.Ruby runtime, org.jruby.ext.ffi.MemoryIO io, long offset)

Gets a NUL terminated string from a memory object

nametypedescription
runtimeorg.jruby.RubyThe ruby runtime
ioorg.jruby.ext.ffi.MemoryIOThe memory object to read the string from
offsetlongThe offset within the memory object to start reading

Returns: A ruby string

get_tainted_string

IRubyObject get_tainted_string ( Ruby runtime, MemoryIO io, long offset, int length )
Java: getTaintedString(org.jruby.Ruby runtime, org.jruby.ext.ffi.MemoryIO io, long offset, int length)

Reads a NUL terminated string from a memory object

nametypedescription
runtimeorg.jruby.RubyThe ruby runtime
ioorg.jruby.ext.ffi.MemoryIOThe memory object to read the string from
offsetlongThe offset within the memory object to start reading
lengthintThe maximum number of bytes to read

Returns: A ruby string

new_tainted_string

RubyString new_tainted_string ( Ruby runtime, byte[] bytes )
Java: newTaintedString(org.jruby.Ruby runtime, byte[] bytes)

Creates a ruby string from a byte array

nametypedescription
runtimeorg.jruby.RubyThe ruby runtime
bytesbyte[]The array to make into a ruby string.

Returns: A ruby string.

put_array_of_float32

put_array_of_float32 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfFloat32(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_float32

put_array_of_float32 ( ThreadContext context, MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfFloat32(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_float64

put_array_of_float64 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfFloat64(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_float64

put_array_of_float64 ( ThreadContext context, MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfFloat64(org.jruby.runtime.ThreadContext context, org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_signed16

put_array_of_signed16 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfSigned16(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_signed32

put_array_of_signed32 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfSigned32(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_signed64

put_array_of_signed64 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfSigned64(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_signed8

put_array_of_signed8 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfSigned8(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_unsigned16

put_array_of_unsigned16 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfUnsigned16(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_unsigned32

put_array_of_unsigned32 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfUnsigned32(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_unsigned64

put_array_of_unsigned64 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfUnsigned64(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)

put_array_of_unsigned8

put_array_of_unsigned8 ( MemoryIO io, long offset, RubyArray ary )
Java: putArrayOfUnsigned8(org.jruby.ext.ffi.MemoryIO io, long offset, org.jruby.RubyArray ary)