Expand description
Parser for file interface
Modules§
- hex_
extractor - Hex dump extraction utilities
- parser_
basic - Basic parser for simple layers (PHY, RLC, MAC, PDCP, SDAP, etc.)
- parser_
gtpu - Parser for GTPU traces
- parser_
nas - Parser for NAS traces
- parser_
ngap - Parser for NGAP traces
- parser_
phy - PHY layer parser for PDSCH/PUSCH traces
- parser_
rrc - Parser for RRC traces
Structs§
- Parsed
Header - Common metadata extracted from either a file header line or WebSocket JSON fields. This serves as the unified input to all layer parsers.
- Parsing
Error - Parsing error
Traits§
- File
Parser - Trait for file parser (legacy — kept for backward compatibility)
- Layer
Parser - Unified layer parser trait. Takes a ParsedHeader (built from either file or WebSocket) plus payload data lines and produces AdditionalInfos for that layer.
Functions§
- build_
trace - Build a Trace from a ParsedHeader, AdditionalInfos, and data lines. This is the single assembly point used by both file and WebSocket paths.
- eof_
error - Build a eof_error
- extract_
file_ payload - Extract the payload portion of file-format lines by stripping the header from the first line. For a file line like “13:20:58.310 [RRC] DL 0001 01 4601 DCCH-NR: RRC release”, this returns the part after the header prefix that is layer-specific payload.
- parse_
timestamp - Parse timestamp from the first line of a trace Expected format: “HH:MM:SS.mmm [LAYER] …”
- parsing_
error_ to_ tramex_ error - Convert a parsing error to a tramex error
- time_
to_ milliseconds - Convert a time to milliseconds.