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
i think i didn't make it clear - it's not about resetting the state. i.e. continue to write more data after finalize() and finalize() again with more data.
Activity
tarcieri commentedon Nov 4, 2022
Use
finalize_reset
ibigbug commentedon Nov 5, 2022
i think i didn't make it clear - it's not about resetting the state. i.e. continue to write more data after finalize() and finalize() again with more data.
tarcieri commentedon Nov 5, 2022
Then you want to
Clone
prior to finalizationburdges commentedon Nov 5, 2022
Also, merlin was more designed for this sort of thing.
As an aside, rust maybe needs some
replace_with
method that makes reset methods unnecessary by ensuring zero copies: rust-lang/rfcs#2884 (comment)burdges commentedon Nov 5, 2022
It appears https://docs.rs/replace_with/ provides equivalent functionality to the
*reset
methods.