Struct hina::ByteVec[][src]

pub struct ByteVec {}

don't use ByteVec. use this instead:

let mut data = Vec::with_capacity(length);
let slice    = std::slice::from_raw_parts_mut(data.as_mut_ptr(), length);

self.read_exact(slice)?;
data.set_len(length);

Methods

impl ByteVec
[src]

Important traits for Vec<u8>

Auto Trait Implementations

impl Send for ByteVec

impl Sync for ByteVec