View Source ExMP4.DataReader behaviour (MP4 Reader and Writer v0.6.0)
A behaviour module for implementing mp4 data reader.
Summary
Callbacks
Close the input stream.
Open the provided input in read mode
Read the specified amount of bytes from the input.
Seek to the provided location in the input stream
Types
Callbacks
@callback close(state()) :: :ok
Close the input stream.
Open the provided input in read mode
The returned state
will be the first argument on the other callbacks
@callback read(state(), chars :: non_neg_integer(), location()) :: iodata() | :eof
Read the specified amount of bytes from the input.
An optional location may be provided to seek into the input.
Seek to the provided location in the input stream