Function clarity::rlp::downcast

source ·
pub fn downcast(input: Uint256) -> Result<usize, Error>
Expand description

Safely downcasts a Uint256 to system integer size, note that on systems with 32 bit integer size this may return invalid for some otherwise valid RLP, but only in the case that the system doesn’t have enough memory to decode the value anyways. I guess swap might allow this error case to actually be encountered