libopenmpt  0.3.4+release.autotools
cross-platform C++ and C library to decode tracked music files
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
libopenmpt_stream_callbacks_buffer.h File Reference
#include "libopenmpt.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  openmpt_stream_buffer
 

Macros

#define openmpt_stream_buffer_init_prefix_only(buffer_, prefix_data_, prefix_size_, file_size_)
 
#define openmpt_stream_buffer_overflowed(buffer_)   ( (buffer_)->overflow )
 

Typedefs

typedef struct
openmpt_stream_buffer 
openmpt_stream_buffer
 

Functions

static size_t openmpt_stream_buffer_read_func (void *stream, void *dst, size_t bytes)
 
static int openmpt_stream_buffer_seek_func (void *stream, int64_t offset, int whence)
 
static int64_t openmpt_stream_buffer_tell_func (void *stream)
 
static void openmpt_stream_buffer_init (openmpt_stream_buffer *buffer, const void *file_data, int64_t file_size)
 
static openmpt_stream_callbacks openmpt_stream_get_buffer_callbacks (void)
 

Macro Definition Documentation

#define openmpt_stream_buffer_init_prefix_only (   buffer_,
  prefix_data_,
  prefix_size_,
  file_size_ 
)
Value:
do { \
openmpt_stream_buffer_init( (buffer_), (prefix_data_), (file_size_) ); \
(buffer_)->prefix_size = (prefix_size_); \
} while(0)
static void openmpt_stream_buffer_init(openmpt_stream_buffer *buffer, const void *file_data, int64_t file_size)
Definition: libopenmpt_stream_callbacks_buffer.h:149
#define openmpt_stream_buffer_overflowed (   buffer_)    ( (buffer_)->overflow )

Typedef Documentation

Function Documentation

static void openmpt_stream_buffer_init ( openmpt_stream_buffer buffer,
const void *  file_data,
int64_t  file_size 
)
static
static size_t openmpt_stream_buffer_read_func ( void *  stream,
void *  dst,
size_t  bytes 
)
static
static int openmpt_stream_buffer_seek_func ( void *  stream,
int64_t  offset,
int  whence 
)
static
static int64_t openmpt_stream_buffer_tell_func ( void *  stream)
static
static openmpt_stream_callbacks openmpt_stream_get_buffer_callbacks ( void  )
static