AirPlay.V2.Plist (AirPlay v0.3.1)

Copy Markdown View Source

Minimal binary plist writer for AirPlay 2 SETUP bodies.

Supports the primitive shapes AP2 setup needs: maps with string keys, lists, binaries, strings, booleans, floats and non-negative integers.

Summary

Functions

Decode a binary plist into {:ok, term} or {:error, reason}.

Decode the subset of binary plist values emitted by AirPlay receivers.

Encode a term as a binary plist.

Functions

decode(data)

@spec decode(binary()) :: {:ok, term()} | {:error, term()}

Decode a binary plist into {:ok, term} or {:error, reason}.

decode!(data)

@spec decode!(binary()) :: term()

Decode the subset of binary plist values emitted by AirPlay receivers.

encode(value)

@spec encode(term()) :: binary()

Encode a term as a binary plist.

encode!(value)

@spec encode!(term()) :: binary()