3 ms·
> The trick is the size is hidden before the adress of the buffer.("Learn this one simple trick that will change your life for ever"). This has drawbacks: 1.
by masklinn 4y ago
> The trick is the size is hidden before the adress of the buffer.("Learn this one simple trick that will change your life for ever").
This has drawbacks:
1. you can't convert an existing buffer to an sds buffer
2. you can't slice into a buffer, because the metadata is part of the string's buffer (even if it's before the pointer)