You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be also nice, if LenUnit will be generic parameters,
so for CAP < 256 it would be possible to use LenUnit = u8.
The memory layout would be even better.
The ordering of fields in the default representation (repr(rust)) is unspecified, so the length field might already be ordered before the data. Of course this depends on the compiler's discretion.
Hi, I noticed that
len
is arranged afterxs
In C's world, it's a convention to move length before an array, like
This provides a few nice features:
The text was updated successfully, but these errors were encountered: