BitsAndBytes
Provides conversion methods for bit and byte arrays to and from strings.
Methods
BitArrayToString
#Convert a bitarray to a sequence of '0' and '1' characters.
Parameters:
| bits (BitArray) | Bits to format. |
Returns: A string representing the bit array.
ByteArrayToString
#Convert a byte array to a string.
Parameters:
| bytes (byte[]) | Bytes to encode. |
| format (HashFormat) | Formatting options. |
Returns: A string representing the byte array.
StringToBitArray
#Convert a string created with the BitArrayToString method back into a bit array.
Parameters:
| text (string) | String to convert. |
Returns: The bit array that was represented by the string.
StringToByteArray
#Convert a string to a byte array.
Parameters:
| text (string) | String to decode. |
| format (HashFormat) | Formatting options. |
Returns: The byte array represented by the string.