ISOMedia.Boxes.ChunkOffset (ISOMedia v0.1.0)

Copy Markdown View Source

Typed view of the stco (32-bit) and co64 (64-bit) Chunk Offset Boxes. kind is :stco or :co64; offsets is a list of absolute file offsets.

Summary

Functions

Decode a stco/co64 box into a %ChunkOffset{}.

Encode a %ChunkOffset{} back into a stco/co64 box.

Types

t()

@type t() :: %ISOMedia.Boxes.ChunkOffset{
  flags: <<_::24>>,
  kind: :stco | :co64,
  offsets: [non_neg_integer()],
  version: non_neg_integer()
}

Functions

decode(box)

Decode a stco/co64 box into a %ChunkOffset{}.

encode(co)

Encode a %ChunkOffset{} back into a stco/co64 box.