Skip to main content

zcash_deserialize_bytes_external_count

Function zcash_deserialize_bytes_external_count 

Source
pub fn zcash_deserialize_bytes_external_count<R: Read>(
    external_count: usize,
    reader: R,
) -> Result<Vec<u8>, SerializationError>
Expand description

zcash_deserialize_external_count, specialised for raw bytes.

Reads the bytes in bulk instead of one element at a time, while bounding the upfront allocation against the peer-supplied external_count.

This function has a zcash_ prefix to alert the reader that the serialization in use is consensus-critical serialization, rather than some other kind of serialization.