Function casper_types::bytesrepr::unchecked_allocate_buffer
source · [−]pub fn unchecked_allocate_buffer<T: ToBytes>(to_be_serialized: &T) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
Expand description
Returns a Vec<u8>
initialized with sufficient capacity to hold to_be_serialized
after
serialization.