Declaraciones públicas de media-core/source/engine_source.zig (media-core: fuentes locales).
apps/docs/generated/zig/media-core-source.jsonPágina generada desde
native/zig/media-core/source/local_file.zig. No se edita a mano:bun run docs:genla regenera ybun run docs:checkfalla 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_msconst · línea 19
pub const max_request_ms: u64 = 30_000Longest 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.budgetMsfn · línea 24
pub fn budgetMs(deadline_ms: ?u64, now_ms: u64, ceiling_ms: u64) u64Milliseconds 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.requestDeadlineNsfn · línea 32
pub fn requestDeadlineNs(deadline_ms: ?u64) u64EngineSource.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.EngineSourcetype · línea 37
pub const EngineSource = structSin ///.
engine_source.EngineSource.sourcefn · línea 53
pub fn source(self: *EngineSource) bytes.ByteSourceSin ///.