MCPcopy Create free account
hub / github.com/archlinux/alpm / flush

Method flush

alpm-compress/src/compression/encoder.rs:207–215  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

205 }
206
207 fn flush(&mut self) -> std::io::Result<()> {
208 match self {
209 CompressionEncoder::Bzip2(encoder) => encoder.flush(),
210 CompressionEncoder::Gzip(encoder) => encoder.flush(),
211 CompressionEncoder::Xz(encoder) => encoder.flush(),
212 CompressionEncoder::Zstd(encoder) => encoder.flush(),
213 CompressionEncoder::None(file) => file.flush(),
214 }
215 }
216
217 fn write_all(&mut self, buf: &[u8]) -> std::io::Result<()> {
218 match self {

Calls

no outgoing calls