Function casper_types::bytesrepr::unchecked_allocate_buffer[][src]

pub fn unchecked_allocate_buffer<T: ToBytes>(to_be_serialized: &T) -> Vec<u8>
Expand description

Returns a Vec<u8> initialized with sufficient capacity to hold to_be_serialized after serialization.