Declaraciones públicas de media-core/container/probe.zig (media-core: motor de medios).
apps/docs/generated/zig/media-engine.jsonPágina generada desde
native/zig/media-core/media_engine.zig. No se edita a mano:bun run docs:genla regenera ybun run docs:checkfalla si difiere.
Container facts entry point: detects the container from its first bytes
styx:parser (dec-0117 §6: S3/S4 apply — untrusted media bytes).
and delegates to the parser. Returns a ContainerInfo that owns its arena.
container.Optionstype · línea 15
pub const Options = structSin ///.
container.Formattype · línea 23
pub const Format = enumSin ///.
container.snifffn · línea 26
pub fn sniff(head: []const u8) ?FormatSniffs the container from the first 8 bytes; null if unsupported.
container.probefn · línea 34
pub fn probe(allocator: std.mem.Allocator, source: ByteSource, opts: Options) Error!ContainerInfoSin ///.
container.Layouttype · línea 39
pub const Layout = unionContainer layout for a demuxer, next to the facts (it lives in the facts arena).
container.Openedtype · línea 44
pub const Opened = structSin ///.
container.openfn · línea 50
pub fn open(allocator: std.mem.Allocator, source: ByteSource, opts: Options) Error!OpenedFacts plus the layout a demuxer needs, in one pass over the headers.