Skip to main content

Module extract

Module extract 

Source
Expand description

Path-based box extraction helpers, including typed convenience reads. Path-based box extraction helpers built on the structure walker.

This module keeps the existing low-level extraction surface available while also exposing thin typed helpers for callers that already know the payload type they expect at a given path, including exact raw-byte helpers and byte-slice convenience wrappers for in-memory workflows.

Structs§

ExtractedBox
Header metadata paired with a decoded runtime box payload.

Enums§

ExtractError
Errors raised while extracting path-matched boxes.

Functions§

copy_box_bytes_to
Copies every box that matches path to writer as exact serialized bytes, including the original box headers, and returns the byte length of each copied match.
copy_box_bytes_to_asyncasync
Copies every box that matches path through the additive Tokio-based async surface to writer as exact serialized bytes, including the original box header, and returns the byte length of each copied match.
copy_box_payload_bytes_to
Copies every payload that matches path to writer as exact on-disk bytes and returns the byte length of each copied match.
copy_box_payload_bytes_to_asyncasync
Copies every payload that matches path through the additive Tokio-based async surface to writer as exact on-disk bytes and returns the byte length of each copied match.
copy_boxes_bytes_to
Copies every box that matches any path in paths to writer as exact serialized bytes, including the original box headers, and returns the byte length of each copied match.
copy_boxes_bytes_to_asyncasync
Copies every box that matches any path in paths through the additive Tokio-based async surface to writer as exact serialized bytes, including the original box headers, and returns the byte length of each copied match.
copy_boxes_payload_bytes_to
Copies every payload that matches any path in paths to writer as exact on-disk bytes and returns the byte length of each copied match.
copy_boxes_payload_bytes_to_asyncasync
Copies every payload that matches any path in paths through the additive Tokio-based async surface to writer as exact on-disk bytes and returns the byte length of each copied match.
extract_box
Extracts every box that matches path and returns the matching header metadata.
extract_box_as
Extracts every box that matches path, decodes the payloads, and clones them as T.
extract_box_as_asyncasync
Extracts every box that matches path through the additive Tokio-based async surface, decodes the payloads, and clones them as T.
extract_box_as_bytes
Extracts every box that matches path, decodes the payloads, and clones them as T from an in-memory MP4 byte slice.
extract_box_asyncasync
Extracts every box that matches path through the additive Tokio-based async surface and returns the matching header metadata.
extract_box_bytes
Extracts every box that matches path and returns each match as exact serialized bytes, including the original box header.
extract_box_bytes_asyncasync
Extracts every box that matches path through the additive Tokio-based async surface and returns each match as exact serialized bytes, including the original box header.
extract_box_payload_bytes
Extracts every box that matches path and returns each matched payload as exact on-disk bytes.
extract_box_payload_bytes_asyncasync
Extracts every box that matches path through the additive Tokio-based async surface and returns each matched payload as exact on-disk bytes.
extract_box_with_payload
Extracts every box that matches path and decodes the payloads.
extract_box_with_payload_asyncasync
Extracts every box that matches path through the additive Tokio-based async surface and decodes the payloads.
extract_boxes
Extracts every box that matches any path in paths and returns the matching header metadata.
extract_boxes_as
Extracts every box that matches any path in paths, decodes the payloads, and clones them as T.
extract_boxes_as_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface, decodes the payloads, and clones them as T.
extract_boxes_as_bytes
Extracts every box that matches any path in paths, decodes the payloads, and clones them as T from an in-memory MP4 byte slice.
extract_boxes_as_with_registry
Extracts every box that matches any path in paths, decodes the payloads with registry, and clones them as T.
extract_boxes_as_with_registry_asyncasync
Extracts every box that matches any path in paths, decodes the payloads through the additive Tokio-based async surface with registry, and clones them as T.
extract_boxes_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface and returns the matching header metadata.
extract_boxes_bytes
Extracts every box that matches any path in paths and returns each match as exact serialized bytes, including the original box header.
extract_boxes_bytes_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface and returns each match as exact serialized bytes, including the original box header.
extract_boxes_bytes_with_registry
Extracts every box that matches any path in paths using registry and returns each match as exact serialized bytes, including the original box header.
extract_boxes_bytes_with_registry_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface using registry and returns each match as exact serialized bytes, including the original box header.
extract_boxes_payload_bytes
Extracts every box that matches any path in paths and returns each matched payload as exact on-disk bytes.
extract_boxes_payload_bytes_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface and returns each matched payload as exact on-disk bytes.
extract_boxes_payload_bytes_with_registry
Extracts every box that matches any path in paths using registry and returns each matched payload as exact on-disk bytes.
extract_boxes_payload_bytes_with_registry_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface using registry and returns each matched payload as exact on-disk bytes.
extract_boxes_with_payload
Extracts every box that matches any path in paths and decodes the payloads.
extract_boxes_with_payload_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface and decodes the payloads.
extract_boxes_with_payload_with_registry
Extracts every box that matches any path in paths, then decodes the payloads with registry.
extract_boxes_with_payload_with_registry_asyncasync
Extracts every box that matches any path in paths, then decodes the payloads through the additive Tokio-based async surface with registry.
extract_boxes_with_registry
Extracts every box that matches any path in paths using registry and returns the matching header metadata.
extract_boxes_with_registry_asyncasync
Extracts every box that matches any path in paths through the additive Tokio-based async surface using registry and returns the matching header metadata.