Module protocol
Source - Protocol
Protocol
holds all state used by a custom protocol.
- StreamClose
- Do any necessary cleanup.
- StreamOpen
- Return a persistent
T
that is passed to all other Stream*
functions, panic on errors. - StreamRead
- Target buffer with fixed capacity.
Return either the number of read bytes,
0
on EOF, or either -1
or panic on error. - StreamSeek
- Seek to the given offset. Return the new offset, or either
MpvError::Generic
if seeking
failed or panic. - StreamSize
- Return the total size of the stream in bytes. Panic on error.