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