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

Method write_all

alpm-compress/src/compression/encoder.rs:217–225  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

215 }
216
217 fn write_all(&mut self, buf: &[u8]) -> std::io::Result<()> {
218 match self {
219 CompressionEncoder::Bzip2(encoder) => encoder.write_all(buf),
220 CompressionEncoder::Gzip(encoder) => encoder.write_all(buf),
221 CompressionEncoder::Xz(encoder) => encoder.write_all(buf),
222 CompressionEncoder::Zstd(encoder) => encoder.write_all(buf),
223 CompressionEncoder::None(file) => file.write_all(buf),
224 }
225 }
226
227 fn write_fmt(&mut self, fmt: std::fmt::Arguments<'_>) -> std::io::Result<()> {
228 match self {

Callers 15

create_fileFunction · 0.80
v2_fileFunction · 0.80
run_bsdtarFunction · 0.80
create_mtree_file_in_dirFunction · 0.80
validate_fileFunction · 0.80
validate_wrong_fileFunction · 0.80
formatFunction · 0.80
validate_fileFunction · 0.80

Calls

no outgoing calls

Tested by 15

v2_fileFunction · 0.64
validate_fileFunction · 0.64
validate_wrong_fileFunction · 0.64
formatFunction · 0.64
validate_fileFunction · 0.64
validate_wrong_fileFunction · 0.64
compareFunction · 0.64
test_dataFunction · 0.64