View Source Membrane.Payload.Behaviour behaviour (Membrane Core v1.2.3)

Behaviour that should be implemented by every module that has Membrane.Payload protocol implementation.

Summary

Callbacks

Creates an empty payload

Creates a new payload initialized with the given binary

Callbacks

empty()

@callback empty() :: Membrane.Payload.t()

Creates an empty payload

new(binary)

@callback new(binary()) :: Membrane.Payload.t()

Creates a new payload initialized with the given binary