ISOMedia.Boxes.Handler (ISOMedia v0.1.0)

Copy Markdown View Source

Typed view of the hdlr Handler Reference Box.

Layout (FullBox): pre_defined(32) · handler_type(4) · reserved(32)x3 · name (UTF-8, NUL-terminated, to end of box).

name is exposed as the stripped name (the bytes before the first NUL), making it convenient to read or edit. name_suffix preserves the original terminator and any trailing bytes (everything from the first NUL onward, or empty when there is no NUL) so that encode reproduces the input byte-for-byte.

Summary

Functions

Decode an hdlr box into a %Handler{}.

Encode a %Handler{} back into an hdlr box.

Types

t()

@type t() :: %ISOMedia.Boxes.Handler{
  flags: <<_::24>>,
  handler_type: String.t(),
  name: String.t(),
  name_suffix: binary(),
  version: non_neg_integer()
}

Functions

decode(box)

Decode an hdlr box into a %Handler{}.

encode(h)

Encode a %Handler{} back into an hdlr box.