3 ms·
Your method is essentially how UTF-8 works. I think the problem is implementing that efficiently in hardware, which is needed for routers.
by icebraining 9y ago
Your method is essentially how UTF-8 works. I think the problem is implementing that efficiently in hardware, which is needed for routers.
- WhoooItsMe 9y agoNot quite, UTF-8 encodes the length of the sequence in the first byte, instead of marking the end, this makes more sense because it is easier to detect broken input. 1110xxxx 10xxxxxx 0xxxxxxx obviously has a byte missing and is broken, but [1]xxxxxxx [0]xxxxxxx could have any number of bytes missing an would just yield the wrong value.