Referencia Zigtransmux

transmux/boxes.zig

Declaraciones públicas de transmux/boxes.zig (transmux).

ImplementadoSin versión del tren todavía· generada desde apps/docs/generated/zig/transmux.json

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

ISOBMFF box writer: a growable buffer with nested boxes whose 32-bit size is patched when the box is closed. Box sizes are checked (a box can never silently exceed 4 GiB: TooLarge).

boxes.Error

const · línea 7

pub const Error = error{ OutOfMemory, TooLarge }

Sin ///.

boxes.Writer

type · línea 9

pub const Writer = struct

Sin ///.

boxes.Writer.init

fn · línea 15

pub fn init(gpa: std.mem.Allocator) Writer

Sin ///.

boxes.Writer.deinit

fn · línea 19

pub fn deinit(self: *Writer) void

Sin ///.

boxes.Writer.reset

fn · línea 23

pub fn reset(self: *Writer) void

Sin ///.

boxes.Writer.bytes

fn · línea 28

pub fn bytes(self: *const Writer) []const u8

Sin ///.

boxes.Writer.len

fn · línea 32

pub fn len(self: *const Writer) usize

Sin ///.

boxes.Writer.begin

fn · línea 36

pub fn begin(self: *Writer, kind: *const [4]u8) Error!void

Sin ///.

boxes.Writer.beginFull

fn · línea 44

pub fn beginFull(self: *Writer, kind: *const [4]u8, version: u8, flags: u24) Error!void

Sin ///.

boxes.Writer.end

fn · línea 50

pub fn end(self: *Writer) Error!void

Sin ///.

boxes.Writer.raw

fn · línea 59

pub fn raw(self: *Writer, data: []const u8) Error!void

Sin ///.

boxes.Writer.zeros

fn · línea 63

pub fn zeros(self: *Writer, n: usize) Error!void

Sin ///.

boxes.Writer.u8be

fn · línea 67

pub fn u8be(self: *Writer, v: u8) Error!void

Sin ///.

boxes.Writer.u16be

fn · línea 71

pub fn u16be(self: *Writer, v: u16) Error!void

Sin ///.

boxes.Writer.u24be

fn · línea 77

pub fn u24be(self: *Writer, v: u24) Error!void

Sin ///.

boxes.Writer.u32be

fn · línea 83

pub fn u32be(self: *Writer, v: u32) Error!void

Sin ///.

boxes.Writer.i32be

fn · línea 89

pub fn i32be(self: *Writer, v: i32) Error!void

Sin ///.

boxes.Writer.u64be

fn · línea 93

pub fn u64be(self: *Writer, v: u64) Error!void

Sin ///.

boxes.Writer.patchU32

fn · línea 101

pub fn patchU32(self: *Writer, at: usize, v: u32) void

Overwrites 4 bytes at at (a value known only later, e.g. a trun data_offset).

boxes.Writer.matrix

fn · línea 106

pub fn matrix(self: *Writer) Error!void

The unity transformation matrix of mvhd / tkhd.