fn slice_count_bytes(payload: &Payload, certification: &Certification) -> usize {
    let stream_begin = payload.header.begin();
    let stream_end = payload.header.end();
    let slice_begin = payload.messages_begin();
    let slice_end = slice_begin.map(|begin| begin + StreamIndex::new(payload.len() as u64));
    payload.count_bytes()
        + witness_count_bytes(stream_begin, stream_end, slice_begin, slice_end)
        + certification.count_bytes()
}
/// Common `CountBytes` implementation for `CertifiedStreamSlice` and
/// `UnpackedStreamSlice`.
///
/// Returns a deterministic byte size estimate of the provided certified slice.


Returns a deterministic byte size estimate of the provided certified slice.
Returns a deterministic byte size estimate of the provided certified slice .
fn slice_count_bytes(payload: &Payload, certification: &Certification) -> usize {
    let stream_begin = payload.header.begin();
    let stream_end = payload.header.end();
    let slice_begin = payload.messages_begin();
    let slice_end = slice_begin.map(|begin| begin + StreamIndex::new(payload.len() as u64));
    payload.count_bytes()
        + witness_count_bytes(stream_begin, stream_end, slice_begin, slice_end)
        + certification.count_bytes()
}
fn slice_count_bytes ( payload : & Payload , certification : & Certification ) -> usize { let stream_begin = payload . header . begin ( ) ; let stream_end = payload . header . end ( ) ; let slice_begin = payload . messages_begin ( ) ; let slice_end = slice_begin . map ( | begin | begin + StreamIndex :: new ( payload . len ( ) as u64 ) ) ; payload . count_bytes ( ) + witness_count_bytes ( stream_begin , stream_end , slice_begin , slice_end ) + certification . count_bytes ( ) }
Common `CountBytes` implementation for `CertifiedStreamSlice` and
`UnpackedStreamSlice`.
Common ` CountBytes ` implementation for ` CertifiedStreamSlice ` and ` UnpackedStreamSlice ` .
payload
&Payload
certification
&Certification
payload
&Payload
certification
&Certification