org.jruby.util
Class ConvertBytes
java.lang.Object
org.jruby.util.ConvertBytes
public class ConvertBytes
- extends java.lang.Object
Constructor Summary |
ConvertBytes(Ruby runtime,
org.jruby.util.ByteList _str,
int base,
boolean badcheck)
|
ConvertBytes(Ruby runtime,
org.jruby.util.ByteList _str,
int base,
boolean badcheck,
boolean is19)
|
Method Summary |
RubyInteger |
byteListToInum()
|
static RubyInteger |
byteListToInum(Ruby runtime,
org.jruby.util.ByteList str,
int base,
boolean badcheck)
rb_cstr_to_inum |
static RubyInteger |
byteListToInum19(Ruby runtime,
org.jruby.util.ByteList str,
int base,
boolean badcheck)
|
static org.jruby.util.ByteList |
intToBinaryByteList(int i)
|
static byte[] |
intToBinaryBytes(int i)
|
static byte[] |
intToByteArray(int i,
int radix,
boolean upper)
|
static byte[] |
intToCharBytes(int i)
|
static org.jruby.util.ByteList |
intToHexByteList(int i)
|
static org.jruby.util.ByteList |
intToHexByteList(int i,
boolean upper)
|
static byte[] |
intToHexBytes(int i)
|
static byte[] |
intToHexBytes(int i,
boolean upper)
|
static org.jruby.util.ByteList |
intToOctalByteList(int i)
|
static byte[] |
intToOctalBytes(int i)
|
static org.jruby.util.ByteList |
longToBinaryByteList(long i)
|
static byte[] |
longToBinaryBytes(long i)
|
static byte[] |
longToByteArray(long i,
int radix,
boolean upper)
|
static org.jruby.util.ByteList |
longToByteList(long i)
|
static org.jruby.util.ByteList |
longToByteList(long i,
int radix)
|
static byte[] |
longToCharBytes(long i)
|
static org.jruby.util.ByteList |
longToHexByteList(long i)
|
static org.jruby.util.ByteList |
longToHexByteList(long i,
boolean upper)
|
static byte[] |
longToHexBytes(long i)
|
static byte[] |
longToHexBytes(long i,
boolean upper)
|
static org.jruby.util.ByteList |
longToOctalByteList(long i)
|
static byte[] |
longToOctalBytes(long i)
|
static byte[] |
twosComplementToBinaryBytes(byte[] in)
|
static byte[] |
twosComplementToHexBytes(byte[] in,
boolean upper)
|
static byte[] |
twosComplementToOctalBytes(byte[] in)
|
static byte[] |
twosComplementToUnsignedBytes(byte[] in,
int shift,
boolean upper)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertBytes
public ConvertBytes(Ruby runtime,
org.jruby.util.ByteList _str,
int base,
boolean badcheck)
ConvertBytes
public ConvertBytes(Ruby runtime,
org.jruby.util.ByteList _str,
int base,
boolean badcheck,
boolean is19)
intToBinaryBytes
public static final byte[] intToBinaryBytes(int i)
intToOctalBytes
public static final byte[] intToOctalBytes(int i)
intToHexBytes
public static final byte[] intToHexBytes(int i)
intToHexBytes
public static final byte[] intToHexBytes(int i,
boolean upper)
intToBinaryByteList
public static final org.jruby.util.ByteList intToBinaryByteList(int i)
intToOctalByteList
public static final org.jruby.util.ByteList intToOctalByteList(int i)
intToHexByteList
public static final org.jruby.util.ByteList intToHexByteList(int i)
intToHexByteList
public static final org.jruby.util.ByteList intToHexByteList(int i,
boolean upper)
intToByteArray
public static final byte[] intToByteArray(int i,
int radix,
boolean upper)
intToCharBytes
public static final byte[] intToCharBytes(int i)
longToBinaryBytes
public static final byte[] longToBinaryBytes(long i)
longToOctalBytes
public static final byte[] longToOctalBytes(long i)
longToHexBytes
public static final byte[] longToHexBytes(long i)
longToHexBytes
public static final byte[] longToHexBytes(long i,
boolean upper)
longToBinaryByteList
public static final org.jruby.util.ByteList longToBinaryByteList(long i)
longToOctalByteList
public static final org.jruby.util.ByteList longToOctalByteList(long i)
longToHexByteList
public static final org.jruby.util.ByteList longToHexByteList(long i)
longToHexByteList
public static final org.jruby.util.ByteList longToHexByteList(long i,
boolean upper)
longToByteArray
public static final byte[] longToByteArray(long i,
int radix,
boolean upper)
longToCharBytes
public static final byte[] longToCharBytes(long i)
longToByteList
public static final org.jruby.util.ByteList longToByteList(long i)
longToByteList
public static final org.jruby.util.ByteList longToByteList(long i,
int radix)
twosComplementToBinaryBytes
public static final byte[] twosComplementToBinaryBytes(byte[] in)
twosComplementToOctalBytes
public static final byte[] twosComplementToOctalBytes(byte[] in)
twosComplementToHexBytes
public static final byte[] twosComplementToHexBytes(byte[] in,
boolean upper)
twosComplementToUnsignedBytes
public static final byte[] twosComplementToUnsignedBytes(byte[] in,
int shift,
boolean upper)
byteListToInum
public static RubyInteger byteListToInum(Ruby runtime,
org.jruby.util.ByteList str,
int base,
boolean badcheck)
- rb_cstr_to_inum
byteListToInum19
public static RubyInteger byteListToInum19(Ruby runtime,
org.jruby.util.ByteList str,
int base,
boolean badcheck)
byteListToInum
public RubyInteger byteListToInum()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.