Read()

Synopsis:

#include <aoi.h>

int64_t (*Read)(void *ctx,
                void *buf,
                int64_t num);

Arguments:

ctx
The context for the stream you want to read from.
buf
The buffer into which you want to read data.
num
The number of bytes to be read from the stream (the length of buf).

Description:

This function should read num bytes from the stream at the stream's current file position.

Returns:

The number of bytes successfully read from the stream.