Referencia Zigmedia-core: fuentes locales

media-core/source/engine_source.zig

Declaraciones públicas de media-core/source/engine_source.zig (media-core: fuentes locales).

ImplementadoSin versión del tren todavía· generada desde apps/docs/generated/zig/media-core-source.json

Página generada desde native/zig/media-core/source/local_file.zig. No se edita a mano: bun run docs:gen la regenera y bun run docs:check falla si difiere.

LocalFileSource as the ByteSource of both media engines (dec-0110 §1): the engines read ONLY through the daemon's source — same pread, same range cap, same path guard (applied when the source was opened) — and the engine's read purpose maps onto ReadPurpose.

engine_source.max_request_ms

const · línea 19

pub const max_request_ms: u64 = 30_000

Longest an engine may run on behalf of one control request, whatever deadline the request carries (or none): the parsers bound what a walk reads (Limits.readBudget), this bounds how long one control-connection thread is held by one file. The spire connection dispatches its envelopes one at a time, so this is also the longest a command queued behind it (closeSession, closeIngest: revocation, dec-0117 I2) can wait.

engine_source.budgetMs

fn · línea 24

pub fn budgetMs(deadline_ms: ?u64, now_ms: u64, ceiling_ms: u64) u64

Milliseconds an engine call may still run: up to the request's deadline (deadline_ms, wall clock ms since the epoch, from the signed envelope), never more than ceiling_ms; 0 if the deadline already passed.

engine_source.requestDeadlineNs

fn · línea 32

pub fn requestDeadlineNs(deadline_ms: ?u64) u64

EngineSource.deadline_ns of an engine call made for a control request whose envelope carries deadline_ms (null = none): now plus budgetMs with the max_request_ms ceiling.

engine_source.EngineSource

type · línea 37

pub const EngineSource = struct

Sin ///.

engine_source.EngineSource.source

fn · línea 53

pub fn source(self: *EngineSource) bytes.ByteSource

Sin ///.