Expand description
Streaming parser for large SARIF files
This module provides efficient streaming parsing for SARIF files, allowing processing of large files without loading everything into memory.
Structs§
- Sarif
Metadata - Metadata from SARIF log (non-run data)
- Streaming
Parser - Streaming parser for SARIF files
- Streaming
Processor - Streaming SARIF processor with callback support
- Streaming
RunIterator - Iterator for streaming run parsing
- Streaming
Stats - Result statistics collector for streaming processing
Functions§
- estimate_
memory_ usage - Estimate memory usage for a SARIF file in bytes
- estimate_
memory_ usage_ mb - Estimate memory usage in MB
- is_
large_ file - Check if a file is likely too large for normal parsing
- recommend_
streaming - Recommend streaming vs normal parsing based on file size
- validate_
json_ structure - Utility function to check if content looks like valid JSON