| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static boolean | Returns: booleanbyte array bytes)Convert a one-entry byte array into a boolean. |
| pack-priv static byte[] | Returns: byte arrayConvert the given boolean value into a one-entry byte array, where true is represented by a 1 and false is a 0. |
| pack-priv static long | |
| pack-priv static byte[] |
| Utils | back to summary |
|---|---|
| pack-priv Utils() | |
| booleanFromByteArray | back to summary |
|---|---|
| pack-priv static boolean booleanFromByteArray(byte[] bytes) Convert a one-entry byte array into a boolean.
If the byte array doesn't have one entry, or if this entry is neither a 0 nor 1, this method throws an
| |
| booleanToByteArray | back to summary |
|---|---|
| pack-priv static byte[] booleanToByteArray(boolean value) Convert the given boolean value into a one-entry byte array, where true is represented by a 1 and false is a 0. mentioned in https://github.com/bcgit/bc-java/pull/1575/
| |
| timeFromBytes | back to summary |
|---|---|
| pack-priv static long timeFromBytes(byte[] bytes) | |
| timeToBytes | back to summary |
|---|---|
| pack-priv static byte[] timeToBytes(long t) | |