Package crackers.kobots.utilities
Class BitsAndBytesKt
-
- All Implemented Interfaces:
public final class BitsAndBytesKt
-
-
Method Summary
Modifier and Type Method Description final static Integer
toShort(ByteArray $self)
final static Long
toLong(ByteArray $self)
final static ByteArray
toByteArray(Short $self)
final static Pair<Byte, Byte>
toBytes(Integer $self)
final static Byte
asByte(Boolean $self)
final static String
hex(Integer $self)
Short form to get unsigned hex strings final static String
hex(Short $self)
final static String
hex(Byte $self)
final static String
hex(ByteArray $self)
final static String
toBinaryString(Integer $self, Integer bits)
Get a binary string out of an Int, left padded with 0s to the specified number of bits -
-
Method Detail
-
toByteArray
final static ByteArray toByteArray(Short $self)
-
toBinaryString
final static String toBinaryString(Integer $self, Integer bits)
Get a binary string out of an Int, left padded with 0s to the specified number of bits
-
-
-
-