Skip to main content

parse_content

Function parse_content 

Source
pub fn parse_content(
    content: &str,
    file_path: &str,
    file_size: u64,
) -> (ParseResult, ResolvedParser)
Expand description

Parse log content that has already been read into memory, auto-detecting its format.

file_path is used only for display/provenance and by format detection heuristics (e.g. extension-based hints) — no filesystem I/O is performed. file_size is the source file size in bytes and is passed through to ParseResult; callers that do not have a source file (e.g. pasted content) may pass content.len() as u64.

Native-only concerns (reading file bytes, decoding EVTX event logs, etc.) live in the src-tauri parser shim on top of this pure entry point.