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
Util — members 29
C check_bounds(runtime, size, off, len)
M double_value(parameter) double
M double_value(context, parameter) double
M find_type(context, name) Type
M find_type(context, name, type_map) Type
M float_value(parameter) float
M float_value(context, parameter) float
M int16_value(parameter) short
M int32_value(parameter) int
M int64_value(parameter) long
M int8_value(parameter) byte
M int_value(obj, enums) int
M long_value(parameter) long
M new_signed16(runtime, value) IRubyObject
M new_signed32(runtime, value) IRubyObject
M new_signed64(runtime, value) IRubyObject
M new_signed8(runtime, value) IRubyObject
M new_unsigned16(runtime, value) IRubyObject
M new_unsigned32(runtime, value) IRubyObject
M new_unsigned64(runtime, value) IRubyObject
M new_unsigned8(runtime, value) IRubyObject
M parse_byte_order(runtime, byte_order) ByteOrder
M round_up_to_power_of_two(v) int
M slice(buf, offset) ByteBuffer
M uint16_value(parameter) int
M uint32_value(parameter) long
M uint64_value(parameter) long
M uint8_value(parameter) short
M ulong_value(parameter) long

org.jruby.ext.ffi.Util

class final 29 members

Class Methods

check_bounds

check_bounds ( Ruby runtime, long size, long off, long len )
Java: checkBounds(org.jruby.Ruby runtime, long size, long off, long len)

double_value

double double_value ( IRubyObject parameter )
Java: doubleValue(org.jruby.runtime.builtin.IRubyObject parameter)

double_value

double double_value ( ThreadContext context, IRubyObject parameter )
Java: doubleValue(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject parameter)

find_type

Type find_type ( ThreadContext context, IRubyObject name )
Java: findType(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

find_type

Type find_type ( ThreadContext context, IRubyObject name, IRubyObject type_map )
Java: findType(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject typeMap)

float_value

float float_value ( IRubyObject parameter )
Java: floatValue(org.jruby.runtime.builtin.IRubyObject parameter)

float_value

float float_value ( ThreadContext context, IRubyObject parameter )
Java: floatValue(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject parameter)

int16_value

short int16_value ( IRubyObject parameter )
Java: int16Value(org.jruby.runtime.builtin.IRubyObject parameter)

int32_value

int int32_value ( IRubyObject parameter )
Java: int32Value(org.jruby.runtime.builtin.IRubyObject parameter)

int64_value

long int64_value ( IRubyObject parameter )
Java: int64Value(org.jruby.runtime.builtin.IRubyObject parameter)

int8_value

byte int8_value ( IRubyObject parameter )
Java: int8Value(org.jruby.runtime.builtin.IRubyObject parameter)

int_value

int int_value ( IRubyObject obj, RubyHash enums )
Java: intValue(org.jruby.runtime.builtin.IRubyObject obj, org.jruby.RubyHash enums)

long_value

long long_value ( IRubyObject parameter )
Java: longValue(org.jruby.runtime.builtin.IRubyObject parameter)

Converts characters like 'a' or 't' to an integer value

new_signed16

IRubyObject new_signed16 ( Ruby runtime, short value )
Java: newSigned16(org.jruby.Ruby runtime, short value)

new_signed32

IRubyObject new_signed32 ( Ruby runtime, int value )
Java: newSigned32(org.jruby.Ruby runtime, int value)

new_signed64

IRubyObject new_signed64 ( Ruby runtime, long value )
Java: newSigned64(org.jruby.Ruby runtime, long value)

new_signed8

IRubyObject new_signed8 ( Ruby runtime, byte value )
Java: newSigned8(org.jruby.Ruby runtime, byte value)

new_unsigned16

IRubyObject new_unsigned16 ( Ruby runtime, short value )
Java: newUnsigned16(org.jruby.Ruby runtime, short value)

new_unsigned32

IRubyObject new_unsigned32 ( Ruby runtime, int value )
Java: newUnsigned32(org.jruby.Ruby runtime, int value)

new_unsigned64

IRubyObject new_unsigned64 ( Ruby runtime, long value )
Java: newUnsigned64(org.jruby.Ruby runtime, long value)

new_unsigned8

IRubyObject new_unsigned8 ( Ruby runtime, byte value )
Java: newUnsigned8(org.jruby.Ruby runtime, byte value)

parse_byte_order

ByteOrder parse_byte_order ( Ruby runtime, IRubyObject byte_order )
Java: parseByteOrder(org.jruby.Ruby runtime, org.jruby.runtime.builtin.IRubyObject byte_order)

round_up_to_power_of_two

int round_up_to_power_of_two ( int v )
Java: roundUpToPowerOfTwo(int v)

slice

ByteBuffer slice ( ByteBuffer buf, int offset )
Java: slice(java.nio.ByteBuffer buf, int offset)

uint16_value

int uint16_value ( IRubyObject parameter )
Java: uint16Value(org.jruby.runtime.builtin.IRubyObject parameter)

uint32_value

long uint32_value ( IRubyObject parameter )
Java: uint32Value(org.jruby.runtime.builtin.IRubyObject parameter)

uint64_value

long uint64_value ( IRubyObject parameter )
Java: uint64Value(org.jruby.runtime.builtin.IRubyObject parameter)

uint8_value

short uint8_value ( IRubyObject parameter )
Java: uint8Value(org.jruby.runtime.builtin.IRubyObject parameter)

ulong_value

long ulong_value ( IRubyObject parameter )
Java: ulongValue(org.jruby.runtime.builtin.IRubyObject parameter)
Copyright (C) 2008 JRuby project