Metagraphics Media!Lab Foundation
Classes

Class Summary - Foundation Classes


 mObject . . . . . . Media!Lab base object class
 mFile . . . . . . . optimized multimedia file I/O class

(top)

mObject Class

The mObject class serves as the base class for all Media!Lab objects. mObject defines the basic class error and warning methods for Media!Lab objects. mObject methods include:

Error() . . . . . . . display Media!Lab error messages
Warning() . . . . . . display Media!Lab warning messages
mClearMem() . . . . . clear a block of memory to zero
mClearStruct(). . . . clear a structure to zero
mArrayCnt() . . . . . count number of elements in an array
mFourCC() . . . . . . pack 4 character codes into a DWORD
mMemCopy(). . . . . . copy bytes in memory (optimized)
mMemSetByte() . . . . set bytes to a fixed value
mMemSetWord() . . . . set words to a fixed value

(top)

mFile Class

The mFile class handles file I/O for fast multimedia access. Files can reside either on an external device (such as disk or CD-ROM), or locally in memory for fastest access. The mFile class methods provide support for both standard buffered-I/O, and direct access Block-I/O for quick multimedia processing. mFile functions include:

mFile() . . . . . . . constructor
Open(). . . . . . . . open a disk file
Open(). . . . . . . . open a memory file
Read(). . . . . . . . read to buffer (buffer I/O)
ReadBlock() . . . . . read next block (block I/O)
Seek(). . . . . . . . seek to file position
SetBlockSize(). . . . set the block size
SetBlockBuffer(). . . set a user block buffer
ReadCheck() . . . . . check that data is within the current block
EOFCheck(). . . . . . check for End-Of-File
GetPosition() . . . . return the file position
Close() . . . . . . . close the file
~mFile(). . . . . . . destructor

RiffBegin() . . . . . RIFF file handling routines
RiffBeginList() . . . 
RiffBeginChunk(). . . 
RiffEndList() . . . . 
RiffEndChunk(). . . . 
RiffSkipChunk() . . . 
RiffSize(). . . . . . 

Back     Next

-

© 1997 Metagraphics Software Corporation. All rights reserved.