Anydoc.Asset (anydoc_ex v0.1.0)

Copy Markdown View Source

An embedded binary asset (image, object payload).

Bytes are always retained so the document stays self-contained after the source archive is gone; the total retained bytes are capped by a fixed safety limit at parse time (crossing it fails the conversion with a :resource_limit error).

Summary

Types

Zero-based index into the document's asset list.

t()

Types

id()

@type id() :: non_neg_integer()

Zero-based index into the document's asset list.

t()

@type t() :: %Anydoc.Asset{
  bytes: binary(),
  id: id(),
  media_type: String.t(),
  origin_part: String.t()
}