Structural inspection for encoded Zstandard data.
ZstdScope parses one or more concatenated Zstandard Standard or Skippable Frames and returns inspection-oriented metadata without decompressing block contents. Public source locations are expressed as zero-based byte offsets into the original encoded input.
Example
use ;
// Minimal Standard Frame: magic, non-single-segment header, and one empty
// Raw block marked as the last block.
let bytes = ;
let file = inspect?;
assert_eq!;
assert_eq!;
assert!;
# Ok::
The parser is strict: empty input, malformed structures, unknown top-level
magic values, and trailing partial frames return [ZstdError] rather than
being silently ignored.