Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
WalterBright
· 5y ago · 0 comments
Won't work with UTF-8.
Comments
[–]
thrwaeasddsaf
5y ago
Works with any encoding and arbitrary binary data. The last byte of the length field doesn't have the high bit set, and whatever follows after that is completely irrelevant.
But still needless complexity for this.
[–]
moonchild
5y ago
Sure it is, the length is out of band. In fact, you could even use utf-8 to encode the length!