Go to file
Wolfgang Bumiller 9cdda3f7c7 tools: add helpful vector and read operations
After importing the I/O ops trait via:
    use crate::tools::io::ops::*;

Instead of:
    let mut buffer = vec![0u8; 65536];
    file.read_exact(&mut buffer)?;
use:
    let buffer = file.read_exact_allocated(65536)?;

After importing the vector helpers via:
    use crate::tools::vec::{self, ops::*};

For a buffer which *could* be uninitialized but you prefer
zero-initialization anyway for security reasons, instead of:
    let mut buffer = vec![0u8; len];
use:
    let mut buffer = vec::undefined(len);
which zero-initializes, but, if the `valgrind` feature flag
is enabled, marks the vector as having undefined contents,
so reading from it will cause valgrind errors.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-05-23 09:49:10 +02:00
debian use service Type=notify 2019-04-25 11:01:33 +00:00
docs docs/index.rst: cleanup 2019-03-19 12:22:57 +01:00
etc use service Type=notify 2019-04-25 11:01:33 +00:00
proxmox-protocol proxmox-protocol/src/types.rs: use derive Endian 2019-04-24 06:59:12 +02:00
qemu-io add qemu-io crate, AioContext reactor helper 2019-05-16 11:59:55 +02:00
src tools: add helpful vector and read operations 2019-05-23 09:49:10 +02:00
tests tests/catar.rs: Pass dummy xattr/fcaps feature_flags to encoder. 2019-05-23 06:41:03 +02:00
www GUI: fix borders 2019-04-11 12:18:04 +02:00
zstd-sys cargo: patch zstd-sys to use system library 2019-03-07 12:18:38 +01:00
.gitignore add generated files to .gitignore 2019-02-05 14:17:30 +01:00
Cargo.toml tools: add helpful vector and read operations 2019-05-23 09:49:10 +02:00
Makefile Makefile: make the tests folder available in the build folder on 'make deb' 2019-05-23 06:31:06 +02:00
defines.mk start generating manual pages 2019-02-24 10:18:38 +01:00