pub async fn read_to_bytes_with_fit(
    read: BlobRead<'_>,
    len: usize
) -> Result<Bytes>
Expand description

Helper function to collect a BlobRead into a Bytes buffer, shrinking the buffer to fit if necessary. This can be useful for long-lived buffers to avoid inflating memory usage.