anderslanglands / ustr

Fast, FFI-friendly string interning for Rust
Other
151 stars 26 forks source link

Read data from the beginning of the StringCacheEntry struct #34

Closed bouk closed 1 year ago

bouk commented 1 year ago

This is to resolve 0 length on architectures where size_of<usize> != size_of<u64>, which causes padding to be added so the struct is aligned.

Fixes #33

cc @QuinnWilton @anderslanglands

anderslanglands commented 1 year ago

Thanks for the fix!