| java.lang.Object org.apache.derby.client.am.SignedBinary
SignedBinary | public class SignedBinary (Code) | | |
Field Summary | |
final public static int | BIG_ENDIAN Unix byte-order for signed binary representations. | final public static int | LITTLE_ENDIAN Intel 80/86 reversed byte-order for signed binary representations. |
Method Summary | |
final public static int | getInt(byte[] buffer, int offset) Build a Java int from a 4-byte signed binary representation. | final public static long | getLong(byte[] buffer, int offset) Build a Java long from an 8-byte signed binary representation. | final public static short | getShort(byte[] buffer, int offset) Build a Java short from a 2-byte signed binary representation. | final public static void | intToBigEndianBytes(byte[] buffer, int offset, int v) Write a Java int to a 4-byte big endian signed binary representation. | final public static void | longToBigEndianBytes(byte[] buffer, int offset, long v) Write a Java long to an 8-byte big endian signed binary representation. | final public static void | shortToBigEndianBytes(byte[] buffer, int offset, short v) Write a Java short to a 2-byte big endian signed binary representation. |
BIG_ENDIAN | final public static int BIG_ENDIAN(Code) | | Unix byte-order for signed binary representations.
|
LITTLE_ENDIAN | final public static int LITTLE_ENDIAN(Code) | | Intel 80/86 reversed byte-order for signed binary representations.
|
getInt | final public static int getInt(byte[] buffer, int offset)(Code) | | Build a Java int from a 4-byte signed binary representation.
throws: IllegalArgumentException - if the specified byte order is not recognized. |
getLong | final public static long getLong(byte[] buffer, int offset)(Code) | | Build a Java long from an 8-byte signed binary representation.
throws: IllegalArgumentException - if the specified byte order is not recognized. |
getShort | final public static short getShort(byte[] buffer, int offset)(Code) | | Build a Java short from a 2-byte signed binary representation.
throws: IllegalArgumentException - if the specified byte order is not recognized. |
intToBigEndianBytes | final public static void intToBigEndianBytes(byte[] buffer, int offset, int v)(Code) | | Write a Java int to a 4-byte big endian signed binary representation.
|
longToBigEndianBytes | final public static void longToBigEndianBytes(byte[] buffer, int offset, long v)(Code) | | Write a Java long to an 8-byte big endian signed binary representation.
|
shortToBigEndianBytes | final public static void shortToBigEndianBytes(byte[] buffer, int offset, short v)(Code) | | Write a Java short to a 2-byte big endian signed binary representation.
|
|
|