bit/casting.fjΒΆ

β€”β€”β€”- String:

View source on GitHub

MacrosΒΆ

bitΒΆ

  • bit.str β€” create a bit-vector, initialized with the value of β€˜str’, and with the number of bytes needed to store β€˜str’, plus 1.

  • bit.bin2ascii β€” Complexity 9@-7

  • bit.dec2ascii β€” Complexity 12@-10

  • bit.hex2ascii β€” ascii := the ascii representation of the value of hex (digits & capital-letters).

  • bit.ascii2bin β€” if ascii is β€˜0’/’1’, set bit to 0/1 (end error=0). else, set error=1.

  • bit.ascii2dec β€” if ascii is β€˜0’-β€˜9’, set dec to that decimal digit value (end error=0). else, set error=1.

  • bit.ascii2hex β€” if ascii is β€˜0’-β€˜9’/’a’-β€˜f’/’A’-β€˜F’, set hex to that hexadecimal digit value (end error=0). else, set error=1.