Y4m.Buffer (y4m v0.3.5)

Data buffer for fragmented y4m streams. Buffer will accept data and return either the properties or frames, once enough data is present.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Push data into the buffer.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

push(buffer, data)

@spec push(atom() | pid() | {atom(), any()} | {:via, atom(), any()}, binary()) ::
  {:error, :need_more_data} | {:frames, [binary()]} | {:props, map()}

Push data into the buffer.

Link to this function

start_link(opts)

@spec start_link(GenServer.options()) :: GenServer.on_start()