pub trait ChunkedWriter {
// Required method
fn export_chunked(&self, chunk_size: usize) -> ChunkIter<'_> ⓘ;
}Expand description
A trait for exporting data in chunks.
Required Methods§
Sourcefn export_chunked(&self, chunk_size: usize) -> ChunkIter<'_> ⓘ
fn export_chunked(&self, chunk_size: usize) -> ChunkIter<'_> ⓘ
Returns an iterator that yields chunks of serialized data.
§Arguments
chunk_size- Maximum size of each chunk in bytes. Values belowMIN_CHUNK_SIZE(64 bytes) are clamped to the minimum.
§Chunk Size Constraints
The minimum effective chunk size is 64 bytes (file header size).
Passing a smaller value will not cause an error; instead, the
implementation clamps it to MIN_CHUNK_SIZE.