hydration
hydration copied to clipboard
Refactor/combine from_bytes and from_stream
Fixes #35
- Combined
from_stream
andfrom_bytes
by creating aas_stream
utility. - Fixed a bug in
from_stream
where bytes hooks can change the field object (with code which already existed infrom_bytes
). - Renamed
from_bytes_hook
topre_deserialization_hook
but kept the old name there for backward-compatibility.