public class BufferUtils extends Object
Constructor and Description |
---|
BufferUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
atoi(byte[] s) |
static long |
atol(byte[] s) |
static byte[] |
itoa(int i)
Blatant copy of Integer.toString, but returning a byte array instead of a String, as
string charset decoding/encoding was killing us on performance.
|
static byte[] |
ltoa(long i) |
public static byte[] itoa(int i)
i
- integer to convertpublic static int atoi(byte[] s) throws NumberFormatException
NumberFormatException
public static byte[] ltoa(long i)
public static long atol(byte[] s) throws NumberFormatException
NumberFormatException
Copyright © GigaSpaces.