Skip to content

Change Serialize::from_buffer to accept impl Read instead of &[u8]#387

Open
VolodymyrBg wants to merge 1 commit into
TaceoLabs:mainfrom
VolodymyrBg:bg
Open

Change Serialize::from_buffer to accept impl Read instead of &[u8]#387
VolodymyrBg wants to merge 1 commit into
TaceoLabs:mainfrom
VolodymyrBg:bg

Conversation

@VolodymyrBg
Copy link
Copy Markdown
Contributor

Refactored the Serialize::from_buffer function to accept any type implementing std::io::Read instead of a byte slice (&[u8]). This change improves flexibility by allowing the function to deserialize data directly from streams or files, not just in-memory buffers. The internal logic was updated to read all bytes from the provided reader before processing, while preserving the original error handling and structure. No other code or interfaces were modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant