pub fn write_to_vec<V: Integer>(buf: &mut Vec<u8>, value: V)Available on crate feature
alloc only.Expand description
Write integer to Vec<u8>.
Note that this function is safe because it checks the capacity of Vec and calls
Vec::reserve() if the Vec doesn’t have enough capacity.