feat: обновить методы обработки данных и улучшить обработку ошибок в библиотеке

This commit is contained in:
2026-02-11 21:43:40 +00:00
parent 3410b54793
commit 662b292b5b
7 changed files with 215 additions and 31 deletions

View File

@@ -31,6 +31,7 @@ impl AsRef<[u8]> for ResourceData<'_> {
/// Output sink used by `read_into`/`load_into` APIs.
pub trait OutputBuffer {
/// Writes the full payload to the sink, replacing any previous content.
fn write_exact(&mut self, data: &[u8]) -> io::Result<()>;
}