3 ms·
Won't work with UTF-8.
by WalterBright 5y ago
Won't work with UTF-8.
- thrwaeasddsaf 5y agoWorks 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 agoSure it is, the length is out of band. In fact, you could even use utf-8 to encode the length!