Crowbar::Encoding
Binary Input and Output Representation Codecs. Provides transparent conversion between human-friendly CLI string encodings (hexadecimal, C-escapes, bitstrings, base64) and raw binary buffers.
Class methods
Decodes an input string, bytes, or buffer into a raw binary Buffer
Decodes bitstring representations (e.g. "0b01010100 01110010" or "0101010001110010")
Decodes C-style escape representations (e.g. "\x64\xaf\x00\r\n\t")
Decodes hexadecimal string representations (e.g. "414243", "0x41 0x42", "41:42:43")
Auto-detects the most probable encoding of an input string representation