Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Jul 24, 2024
1 parent 0a9dc4f commit 6dcb65b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/polars-io/src/utils/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ pub fn get_reader_bytes<'a, R: Read + MmapBytesReader + ?Sized>(
}
}

/// Decompress `bytes` if compression is detected, otherwise simply return it.
/// An `out` vec must be given for ownership of the decompressed data.
///
/// # Safety
/// The `out` vec outlives `bytes`.
/// The `out` vec outlives `bytes` (declare `out` first).
pub unsafe fn maybe_decompress_bytes<'a>(
bytes: &'a [u8],
out: &'a mut Vec<u8>,
Expand Down

0 comments on commit 6dcb65b

Please sign in to comment.