View Source ExSDP.Serializer (ExSDP v0.11.0)

Module providing helper functions for serialization.

Link to this section Summary

Functions

Serializes both sdp lines (<type>=<value>) and sdp parameters (<parameter>=<value>)

Link to this section Functions

Link to this function

maybe_serialize(type, values)

View Source
@spec maybe_serialize(type :: binary(), value :: term()) :: binary()

Serializes both sdp lines (<type>=<value>) and sdp parameters (<parameter>=<value>)

Link to this function

maybe_serialize_hex(type, value)

View Source
@spec maybe_serialize_hex(String.t(), nil | integer()) :: binary()
Link to this function

maybe_serialize_list(list, sep)

View Source
@spec maybe_serialize_list([String.t()] | nil, String.t()) :: String.t()