Hacker News new | ask | show | jobs
by mkcg 1831 days ago
You could also prefix it with a varint : in this case it would not require any extra byte compared to the NUL terminated string when the length of the string is less than 128 chars.