rwbytes
rwbytes - Read and write FOURCCs and unsigned 8, 16, and 32-bit integers
.
All of these routines return a zero RIFFIOSuccess on failure.
On failure, the RIFFIOFile position is undefined.
None of these functions call RIFFIOError.
Read an unsigned 8-bit integer from a RIFF file.
RIFFIOSuccess
RIFFIORead8(RIFFIOFile *prf, unsigned char *ucp)
Read an unsigned 16-bit integer from a RIFF file.
RIFFIOSuccess
RIFFIORead16(RIFFIOFile *prf, unsigned short *usp)
Read an unsigned 32-bit integer from a RIFF file.
RIFFIOSuccess
RIFFIORead32(RIFFIOFile *prf, unsigned long *ulp)
Read a four-character code from a RIFF file.
RIFFIOSuccess
RIFFIOReadFOURCC(RIFFIOFile *prf, RIFFIOFOURCC *fccp)
Write an unsigned 8-bit integer to a RIFF file.
RIFFIOSuccess
RIFFIOWrite8(RIFFIOFile *prf, unsigned char uc)
Write an unsigned 16-bit integer to a RIFF file.
RIFFIOSuccess
RIFFIOWrite16(RIFFIOFile *prf, unsigned short us)
Write an unsigned 32-bit integer to a RIFF file.
RIFFIOSuccess
RIFFIOWrite32(RIFFIOFile *prf, unsigned long ul)
Write a four-character code to a RIFF file.
RIFFIOSuccess
RIFFIOWriteFOURCC(RIFFIOFile *prf, RIFFIOFOURCC fcc)