libmpcdec: src/mpc_reader.c File Reference

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

# mpc_reader.c File Reference

`#include <mpcdec/mpcdec.h>`

Go to the source code of this file.

## Functions
void | mpc_reader_setup_file_reader (mpc_reader_file *p_reader, FILE *input)

## Detailed Description

Contains implementations for simple file-based mpc_reader

Definition in file mpc_reader.c.

## Function Documentation

void mpc_reader_setup_file_reader | ( | mpc_reader_file * | r,
|  | FILE * | input
| ) |

  | Initializes reader with default stdio file reader implementation. Use this if you're just reading from a plain file. Parameters:
  | r | reader struct to initalize
  | input | input stream to attach to the reader
Definition at line 82 of file mpc_reader.c. References mpc_reader_t::canseek, mpc_reader_t::data, mpc_reader_file_t::file, mpc_reader_file_t::file_size, mpc_reader_t::get_size, mpc_reader_file_t::is_seekable, mpc_reader_t::read, mpc_reader_file_t::reader, mpc_reader_t::seek, and mpc_reader_t::tell.