Module streaming

Module streaming 

Source
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§

SarifMetadata
Metadata from SARIF log (non-run data)
StreamingParser
Streaming parser for SARIF files
StreamingProcessor
Streaming SARIF processor with callback support
StreamingRunIterator
Iterator for streaming run parsing
StreamingStats
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