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's currently impossible (as far as I can tell) to load an invalid HashTable in debug mode and handle the error at runtime. Perhaps that debug assert should be moved into from_raw_bytes_unchecked?
In my use case I'm using ODHT to store an index within some serialized files. The code which loads these files uses from_raw_bytes to load the index and then checks it's Result to see if it failed.
The text was updated successfully, but these errors were encountered:
Due to the debug_assert here:
odht/src/memory_layout.rs
Line 218 in bc31b05
it's currently impossible (as far as I can tell) to load an invalid HashTable in debug mode and handle the error at runtime. Perhaps that debug assert should be moved into from_raw_bytes_unchecked?
In my use case I'm using ODHT to store an index within some serialized files. The code which loads these files uses
from_raw_bytes
to load the index and then checks it's Result to see if it failed.The text was updated successfully, but these errors were encountered: