View Source ExSDP.Serializer (ExSDP v1.1.1)

Module providing helper functions for serialization.

Summary

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_base64(type, values)

View Source
@spec maybe_serialize_base64(String.t(), nil | [binary()]) :: binary()
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()