Bitwise IO: Difference between revisions
Content added Content deleted
Line 1,451: | Line 1,451: | ||
69</lang> |
69</lang> |
||
Note: this implementation writes the bytes to the session (which is to say, it just gets displayed like any other result. Also, the compressed result is represented as bits - like 1 0 1 0 1... You'll of course need other code when you want to do other things.) |
Note: this implementation writes the bytes to the session (which is to say, it just gets displayed like any other result. Also, the compressed result is represented as bits - like 1 0 1 0 1... You'll of course need other code when you want to do other things.) |
||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
ASCII 7-bit character string compression and decompression, to demonstrate bit twiddling. Implemented as generic IO, so that file handles are usable with the same functions. |
ASCII 7-bit character string compression and decompression, to demonstrate bit twiddling. Implemented as generic IO, so that file handles are usable with the same functions. |
||
<lang Julia> |
<lang Julia> |