LittleEndianConversions
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: the converted integerthe integer to convert x)Convert an integer to an octet string of length 4 according to IEEE 1363, Section 5.5.3. |
| public static byte[] | Returns: an octet string of length oLen representing the integer x, or null if the integer is negativethe integer to convert x, int the desired length of the octet string oLen)Convert an integer to an octet string according to IEEE 1363, Section 5.5.3. |
| public static void | I2OSP(int
the integer to convert input, byte[] byte array holding the output output, int offset in output array where the result is stored outOff)Convert an integer to an octet string of length 4 according to IEEE 1363, Section 5.5.3. |
| public static byte[] | Returns: the converted integerthe integer to convert input)Convert an integer to an octet string of length 8 according to IEEE 1363, Section 5.5.3. |
| public static void | I2OSP(long
the integer to convert input, byte[] byte array holding the output output, int offset in output array where the result is stored outOff)Convert an integer to an octet string of length 8 according to IEEE 1363, Section 5.5.3. |
| public static void | I2OSP(int
the integer to convert input, byte[] byte array holding the output output, int offset in output array where the result is stored outOff, int the length of the encoding length)Convert an integer to an octet string of the specified length according to IEEE 1363, Section 5.5.3. |
| public static int | Returns: an integer representing the octet string input, or 0 if the represented integer is negative or too large or the byte array is emptythe byte array holding the octet string input)Convert an octet string to an integer according to IEEE 1363, Section 5.5.3. |
| public static int | Returns: the resulting integerthe byte array input, int the offset into the byte array inOff)Convert a byte array of length 4 beginning at offset into an integer. |
| public static int | Returns: an integer representing the octet string bytes, or 0 if the represented integer is negative or too large or the byte array is emptythe byte array holding the octet string input, int the offset in the input byte array where the octet string
starts inOff, int the length of the encoded integer inLen)Convert an octet string to an integer according to IEEE 1363, Section 5.5.3. |
| public static long | Returns: the resulting long integerthe byte array input, int the offset into the byte array inOff)Convert a byte array of length 8 beginning at inOff into a long integer. |
| public static byte[] | Returns: the converted arraythe int array input)Convert an int array into a byte array. |
| public static byte[] | Returns: the converted arraythe int array input, int the length of the converted array length)Convert an int array into a byte array of the specified length. |
| public static int[] | Returns: the converted arraythe byte array input)Convert a byte array into an int array. |
| BigEndianConversions | back to summary |
|---|---|
| private BigEndianConversions() Default constructor (private). | |
| I2OSP | back to summary |
|---|---|
| public static byte[] I2OSP(int x) Convert an integer to an octet string of length 4 according to IEEE 1363, Section 5.5.3.
| |
| I2OSP | back to summary |
|---|---|
| public static byte[] I2OSP(int x, int oLen) throws ArithmeticException Convert an integer to an octet string according to IEEE 1363, Section 5.5.3. Length checking is performed.
| |
| I2OSP | back to summary |
|---|---|
| public static void I2OSP(int input, byte[] output, int outOff) Convert an integer to an octet string of length 4 according to IEEE 1363, Section 5.5.3.
| |
| I2OSP | back to summary |
|---|---|
| public static byte[] I2OSP(long input) Convert an integer to an octet string of length 8 according to IEEE 1363, Section 5.5.3.
| |
| I2OSP | back to summary |
|---|---|
| public static void I2OSP(long input, byte[] output, int outOff) Convert an integer to an octet string of length 8 according to IEEE 1363, Section 5.5.3.
| |
| I2OSP | back to summary |
|---|---|
| public static void I2OSP(int input, byte[] output, int outOff, int length) Convert an integer to an octet string of the specified length according to IEEE 1363, Section 5.5.3. No length checking is performed (i.e., if the integer cannot be encoded into length octets, it is truncated).
| |
| OS2IP | back to summary |
|---|---|
| public static int OS2IP(byte[] input) Convert an octet string to an integer according to IEEE 1363, Section 5.5.3.
| |
| OS2IP | back to summary |
|---|---|
| public static int OS2IP(byte[] input, int inOff) Convert a byte array of length 4 beginning at offset into an integer.
| |
| OS2IP | back to summary |
|---|---|
| public static int OS2IP(byte[] input, int inOff, int inLen) Convert an octet string to an integer according to IEEE 1363, Section 5.5.3.
| |
| OS2LIP | back to summary |
|---|---|
| public static long OS2LIP(byte[] input, int inOff) Convert a byte array of length 8 beginning at inOff into a long integer.
| |
| toByteArray | back to summary |
|---|---|
| public static byte[] toByteArray(final int[] input) Convert an int array into a byte array.
| |
| toByteArray | back to summary |
|---|---|
| public static byte[] toByteArray(final int[] input, int length) Convert an int array into a byte array of the specified length. No length checking is performed (i.e., if the last integer cannot be encoded into length % 4 octets, it is truncated).
| |
| toIntArray | back to summary |
|---|---|
| public static int[] toIntArray(byte[] input) Convert a byte array into an int array.
| |