Expand description
日志解析通用工具函数
提供字节数据解析的基础工具,不使用 BorshDeserialize
Modules§
- text_
parser - 文本回退解析工具
Functions§
- create_
metadata_ default - 创建默认事件元数据的通用函数(不需要程序ID)
- create_
metadata_ simple - 创建事件元数据的通用函数
- extract_
discriminator_ fast - 快速提取 discriminator(只解码前16字节,避免完整解码)
- extract_
program_ data - 从日志中提取程序数据(使用 SIMD 优化查找)
- read_
bool - 读取布尔值
- read_
i32_ le - 从字节数组中读取 i32(小端序)- SIMD 优化
- read_
i64_ le - 从字节数组中读取 i64(小端序)- SIMD 优化
- read_
pubkey - 从字节数组中读取 Pubkey(32字节)- SIMD 优化
- read_
string - 从字节数组中读取字符串
- read_u8
- 从字节数组中读取 u8
- read_
u16_ le - 从字节数组中读取 u16(小端序)- SIMD 优化
- read_
u32_ le - 从字节数组中读取 u32(小端序)- SIMD 优化
- read_
u64_ le - 从字节数组中读取 u64(小端序)- SIMD 优化
- read_
u128_ le - 从字节数组中读取 u128(小端序)- SIMD 优化