read_sub_u128
Read sub value from u128 just like substr in other language
Arguments
value- data of u128value_size- the size of data in bytesoffset- the offset of sub valuesize- the size of sub value in bytes
Returns
sub_value- the sub value of origin u128
Examples
u128_sub_value(0x000001020304, 6, 1, 3) -> 0x000102
Fully qualified path: alexandria_bytes::utils::read_sub_u128
pub fn read_sub_u128(value: u128, value_size: u32, offset: u32, size: u32) -> u128