public final class Util extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkBounds(Ruby runtime,
long size,
long off,
long len) |
static <T> T |
convertParameter(IRubyObject parameter,
Class<T> paramClass)
Deprecated.
|
static double |
doubleValue(IRubyObject parameter) |
static Type |
findType(ThreadContext context,
IRubyObject name) |
static Type |
findType(ThreadContext context,
IRubyObject name,
IRubyObject typeMap) |
static float |
floatValue(IRubyObject parameter) |
static short |
int16Value(IRubyObject parameter) |
static int |
int32Value(IRubyObject parameter) |
static long |
int64Value(IRubyObject parameter) |
static byte |
int8Value(IRubyObject parameter) |
static int |
intValue(IRubyObject obj,
RubyHash enums) |
static long |
longValue(IRubyObject parameter)
Converts characters like 'a' or 't' to an integer value
|
static IRubyObject |
newSigned16(Ruby runtime,
short value) |
static IRubyObject |
newSigned32(Ruby runtime,
int value) |
static IRubyObject |
newSigned64(Ruby runtime,
long value) |
static IRubyObject |
newSigned8(Ruby runtime,
byte value) |
static IRubyObject |
newUnsigned16(Ruby runtime,
short value) |
static IRubyObject |
newUnsigned32(Ruby runtime,
int value) |
static IRubyObject |
newUnsigned64(Ruby runtime,
long value) |
static IRubyObject |
newUnsigned8(Ruby runtime,
byte value) |
static ByteOrder |
parseByteOrder(Ruby runtime,
IRubyObject byte_order) |
static int |
roundUpToPowerOfTwo(int v) |
static ByteBuffer |
slice(ByteBuffer buf,
int offset) |
static int |
uint16Value(IRubyObject parameter) |
static long |
uint32Value(IRubyObject parameter) |
static long |
uint64Value(IRubyObject parameter) |
static short |
uint8Value(IRubyObject parameter) |
public static final byte int8Value(IRubyObject parameter)
public static final short uint8Value(IRubyObject parameter)
public static final short int16Value(IRubyObject parameter)
public static final int uint16Value(IRubyObject parameter)
public static final int int32Value(IRubyObject parameter)
public static final long uint32Value(IRubyObject parameter)
public static final long int64Value(IRubyObject parameter)
public static final long uint64Value(IRubyObject parameter)
public static final float floatValue(IRubyObject parameter)
public static final double doubleValue(IRubyObject parameter)
public static final long longValue(IRubyObject parameter)
parameter
- public static int intValue(IRubyObject obj, RubyHash enums)
public static final IRubyObject newSigned8(Ruby runtime, byte value)
public static final IRubyObject newUnsigned8(Ruby runtime, byte value)
public static final IRubyObject newSigned16(Ruby runtime, short value)
public static final IRubyObject newUnsigned16(Ruby runtime, short value)
public static final IRubyObject newSigned32(Ruby runtime, int value)
public static final IRubyObject newUnsigned32(Ruby runtime, int value)
public static final IRubyObject newSigned64(Ruby runtime, long value)
public static final IRubyObject newUnsigned64(Ruby runtime, long value)
@Deprecated public static final <T> T convertParameter(IRubyObject parameter, Class<T> paramClass)
public static final ByteBuffer slice(ByteBuffer buf, int offset)
public static final void checkBounds(Ruby runtime, long size, long off, long len)
public static Type findType(ThreadContext context, IRubyObject name)
public static Type findType(ThreadContext context, IRubyObject name, IRubyObject typeMap)
public static ByteOrder parseByteOrder(Ruby runtime, IRubyObject byte_order)
public static int roundUpToPowerOfTwo(int v)
Copyright © 2001-2015 JRuby. All Rights Reserved.