Skip to main content

prealloc_proven

Function prealloc_proven 

Source
pub fn prealloc_proven<T>(max_size: usize) -> Vec<T>
Expand description

Pre-allocate buffer using proven maximum size

Uses proven maximum sizes to avoid reallocation. For example, transaction buffers can be pre-sized to MAX_TX_SIZE_PROVEN.