Function bcs::from_bytes_with_limit
source ยท pub fn from_bytes_with_limit<'a, T>(bytes: &'a [u8], limit: usize) -> Result<T>where
T: Deserialize<'a>,
Expand description
Same as from_bytes
but use limit
as max container depth instead of MAX_CONTAINER_DEPTHNote that
limit` has to be lower than MAX_CONTAINER_DEPTH