libmpcdec: mpc_reader_t Struct Reference

Main Page | Class List | Directories | File List | Class Members | File Members | Related Pages

# mpc_reader_t Struct Reference

Stream reader interface structure. More...

`#include <reader.h>`

List of all members.

## Public Attributes

mpc_int32_t(* | read )(void *t, void *ptr, mpc_int32_t size)
| Reads size bytes of data into buffer at ptr.
mpc_bool_t(* | seek )(void *t, mpc_int32_t offset)
| Seeks to byte position offset.
mpc_int32_t(* | tell )(void *t)
| Returns the current byte offset in the stream.
mpc_int32_t(* | get_size )(void *t)
| Returns the total length of the source stream, in bytes.
mpc_bool_t(* | canseek )(void *t)
| True if the stream is a seekable stream.
void * | data

## Detailed Description

Stream reader interface structure.

This is the structure you must supply to the musepack decoding library to feed it with raw data. Implement the five member functions to provide a functional reader.

Definition at line 45 of file reader.h.

## Member Data Documentation

void* mpc_reader_t::data

| Field that can be used to identify a particular instance of reader or carry along data associated with that reader. Definition at line 63 of file reader.h. Referenced by JumpID3v2(), mpc_reader_setup_file_reader(), and mpc_streaminfo_read().

The documentation for this struct was generated from the following file:

- include/mpcdec/reader.h