Home Download Musics Developers
API Sources Tools File Format Technicals

istream68.h File Reference


Detailed Description

generic stream header..

Author:
benjamin gerard
Date:
2003/08/08
Id
istream68.h,v 2.5 2003/10/29 06:50:41 benjihan Exp

Generic istream access functions.

Go to the source code of this file.

Generic access functions.

const char * istream_filename (istream_t *istream)
 Get stream name.

int istream_open (istream_t *istream)
 Open stream.

int istream_close (istream_t *istream)
 Close stream.

int istream_read (istream_t *istream, void *data, int len)
 Read data from stream.

int istream_write (istream_t *istream, const void *data, int len)
 Write data into stream.

int istream_length (istream_t *istream)
 Get stream length.

int istream_tell (istream_t *istream)
 Get stream current position.

int istream_seek (istream_t *istream, int offset)
 Set stream relative position.

int istream_seek_to (istream_t *istream, int pos)
 Set stream absolute position.

void istream_destroy (istream_t *istream)
 Close and destroy stream.

int istream_gets (istream_t *istream, char *buffer, int max)
 Read a '\0' or '\n' terminated string.

int istream_getc (istream_t *istream)
 Read next character.

int istream_puts (istream_t *istream, const char *s)
 Write a '\0' terminated string.

int istream_putc (istream_t *istream, const int c)
 Write a character.


Typedefs

typedef _istream_t istream_t
 stream type.