#safe print byte
1 messages · Page 1 of 1 (latest)
to print \n (backward slash, lowercase n), print the string "\\n"
\n is just just an example, I have an array of bytes and i don't know which byte I'm gonna print.
probably would make sense to print the byte as number but it's for a cool visualization I'm working on. just want to figure out to safe print.
ah, I see what you're after, you want to print the escaped string. look into std.ascii.hexEscape
Thanks. not exactly what I wanted but this works as well.
I'm built huffman compression code a while and I wanted a better visualization.