BigEndianConversions
| 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. |
| public static void | I2OSP(int
the integer to convert value, byte[] the byte array to hold the result output, int the integer offset into the byte array outOff)Convert an integer into a byte array beginning at the specified offset. |
| public static void | I2OSP(int
the integer to convert value, byte[] the byte array to hold the result output, int the integer offset into the byte array outOff, int the length of the encoding outLen)Convert an integer to a byte array beginning at the specified offset. |
| public static byte[] | Returns: the converted integerthe integer to convert input)Convert an integer to a byte array of length 8. |
| 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 a byte array of length 8. |
| public static int | Returns: an integer representing the octet string inputthe byte array holding the octet string input)Convert an octet string of length 4 to an integer. |
| public static int | Returns: the resulting integerthe byte array input, int the offset into the byte array inOff)Convert an byte array of length 4 beginning at offset into an integer. |
| public static int | Returns: the resulting integerthe byte array input, int the offset into the byte array inOff, int the length of the encoding inLen)Convert a byte array of the given length beginning at offset into an integer. |
| 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, int the length of the converted array outLen)Convert an int array to a byte array of the specified length. |
| public static int[] | Returns: the converted arraythe byte array input)Convert a byte array to an int array. |
| LittleEndianConversions | back to summary |
|---|---|
| private LittleEndianConversions() Default constructor (private). | |
| I2OSP | back to summary |
|---|---|
| public static byte[] I2OSP(int x) Convert an integer to an octet string of length 4.
| |
| I2OSP | back to summary |
|---|---|
| public static void I2OSP(int value, byte[] output, int outOff) Convert an integer into a byte array beginning at the specified offset.
| |
| I2OSP | back to summary |
|---|---|
| public static void I2OSP(int value, byte[] output, int outOff, int outLen) Convert an integer to a byte array beginning at the specified offset. No length checking is performed (i.e., if the integer cannot be encoded with length octets, it is truncated).
| |
| I2OSP | back to summary |
|---|---|
| public static byte[] I2OSP(long input) Convert an integer to a byte array of length 8.
| |
| I2OSP | back to summary |
|---|---|
| public static void I2OSP(long input, byte[] output, int outOff) Convert an integer to a byte array of length 8.
| |
| OS2IP | back to summary |
|---|---|
| public static int OS2IP(byte[] input) Convert an octet string of length 4 to an integer. No length checking is performed.
| |
| OS2IP | back to summary |
|---|---|
| public static int OS2IP(byte[] input, int inOff) Convert an 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 a byte array of the given length beginning at offset into an integer.
| |
| 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(int[] input, int outLen) Convert an int array to a byte array of the specified length. No length checking is performed (i.e., if the last integer cannot be encoded with length % 4 octets, it is truncated).
| |
| toIntArray | back to summary |
|---|---|
| public static int[] toIntArray(byte[] input) Convert a byte array to an int array.
| |