Class BacktraceDeserializer
java.lang.Object
ai.tegmentum.wasmtime4j.panama.util.BacktraceDeserializer
Utility class for deserializing backtrace data from native FFI.
Deserializes binary backtrace format produced by Panama FFI backtrace capture functions. The format matches the serialization in panama_ffi.rs:
Backtrace: [frame_count: u32][force_capture: u8][frames...]
Frame: [func_index: u32][has_func_name: u8][func_name_len: u32][func_name: bytes]
[has_module_offset: u8][module_offset: u32][has_func_offset: u8][func_offset: u32]
[has_module_name: u8][module_name_len: u32][module_name: bytes]
[symbol_count: u32][symbols...]
Symbol: [has_name: u8][name_len: u32][name: bytes][has_file: u8][file_len: u32][file: bytes]
[has_line: u8][line: u32][has_column: u8][column: u32]
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ai.tegmentum.wasmtime4j.debug.WasmBacktracedeserialize(byte[] data) Deserializes a backtrace from binary format.
-
Method Details
-
deserialize
public static ai.tegmentum.wasmtime4j.debug.WasmBacktrace deserialize(byte[] data) Deserializes a backtrace from binary format.- Parameters:
data- the binary backtrace data- Returns:
- the deserialized WasmBacktrace
- Throws:
IllegalArgumentException- if the data is invalid
-