Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
initplus
· 3y ago · 0 comments
You can fix this issue by using a variable width integer encoding for the size.
Comments
[–]
burntsushi
3y ago
It might fix that particular issue, but you still have the same problem that NUL terminated strings have: it's not possible to cheaply create views/slices of a string using the same type.