Hacker News new | ask | show | jobs
by salgernon 4043 days ago
Another option for dealing with nuls in a string:

http://en.m.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuf...

Basically eliminates a null in a byte stream so it can be used as a terminator.