Skip to main content

compress_buf

Function compress_buf 

Source
pub fn compress_buf(data: &[u8], c: Compression) -> Result<Vec<u8>, FaucetError>
Available on crate feature compression only.
Expand description

One-shot in-memory compression. Used by S3 and GCS sinks that build a full Vec<u8> body before upload.