Closed rytheo closed 8 months ago
@mulimoen changing hdf5/src/util.rs
shouldn't be a breaking change; looking at hdf5/src/lib.rs
, it seems like none of the functions in util
are accessible outside the crate. Am I missing something?
@rytheo You are right, after closer examination it is not exported publicly. Note to self: Should mark these functions/modules as pub(crate)
Found various functions that should be
unsafe
since they take raw pointer arguments and must assume they point to valid data.Made
string_from_fixed_bytes
panic on invalid UTF-8 instead of marking it unsafe, but marking it unsafe is a valid alternative if theunwrap
call significantly reduces performance.