barecat.io#

I/O utilities for Barecat.

Submodules#

Functions#

copy(src, dst[, size, src_offset, dst_offset, bufsize])

Copy bytes between file objects using the fastest available method.

copy_crc32c(src, dst[, size, src_offset, dst_offset, ...])

Copy bytes and compute CRC32c in a single pass (when possible).

accumulate_crc32c(fileobj[, size, offset, bufsize, ...])

Compute CRC32c of file contents (read-only scan).

write_zeroes(file, n[, bufsize])

Write n zero bytes. Tries fallocate first, falls back to buffered.