Skip to main content

chunked

Function chunked 

Source
fn chunked(
    payload: PutPayload,
    part_size: usize,
) -> impl Iterator<Item = PutPayload>
Expand description

Splits a payload into nonempty parts no larger than part_size.

The iterator owns the payload buffer and advances it without copying the bytes in each yielded part.