Skip to main content

Module inner_common

Module inner_common 

Source
Expand description

通用 Inner Instruction 解析工具

提供零拷贝、高性能的通用读取函数,供所有协议的 inner instruction 解析器使用

Functions§

check_length
检查数据长度是否足够
read_bool_unchecked
零拷贝读取 bool
read_i32_unchecked
零拷贝读取 i32
read_i64_unchecked
零拷贝读取 i64
read_i128_unchecked
零拷贝读取 i128
read_pubkey_unchecked
零拷贝读取 Pubkey (32 bytes)
read_string_unchecked
零拷贝读取字符串(带长度前缀)
read_u8_unchecked
零拷贝读取 u8
read_u16_unchecked
零拷贝读取 u16
read_u32_unchecked
零拷贝读取 u32
read_u64_unchecked
零拷贝读取 u64
read_u128_unchecked
零拷贝读取 u128