InputStream

Typedefs

typedef int64_t (*sfInputStreamReadFunc)(void *data, size_t size, void *userData)
typedef int64_t (*sfInputStreamSeekFunc)(size_t position, void *userData)
typedef int64_t (*sfInputStreamTellFunc)(void *userData)
typedef int64_t (*sfInputStreamGetSizeFunc)(void *userData)
typedef struct sfInputStream sfInputStream

Set of callbacks that allow users to define custom file streams.

struct sfInputStream
#include <InputStream.h>

Set of callbacks that allow users to define custom file streams.

Public Members

sfInputStreamReadFunc read

Function to read data from the stream.

sfInputStreamSeekFunc seek

Function to set the current read position.

sfInputStreamTellFunc tell

Function to get the current read position.

sfInputStreamGetSizeFunc getSize

Function to get the total number of bytes in the stream.

void *userData

User data that will be passed to the callbacks.