|
CLASS moMemFile
NAME
Contructors - create a new file object
Destructor - ensure the memory used by this object is released
VERSION
Version: 1.2.0
SYNOPSIS
moMemFile(void);
virtual ~moMemFile();
DESCRIPTION
The memory file object will be used whenever you don't have a
really large file and the file is temporary. This file is
based on the moIOStream and all the functions available in
the moIOStream are functional with this file implementation.
SEE ALSO
moBuffer class
COPYRIGHTS
This documentation and the code being documented is proprietary and cannot be duplicated without the express and written consent of Made to Order Software Coporation.
Copyright (c) 1999-2007 by Made to Order Software Corporation
All rights reserved.
AUTHORS
Alexis Wilke, Doug Barbieri
CLASS
moMemFile
NAME
RawRead - read bytes from the memory file
RawWrite - writes bytes to the memory file
VERSION
Version: 1.2.0
SYNOPSIS
virtual int RawRead(void *buffer, size_t length);
virtual int RawWrite(const void *buffer, size_t length);
DESCRIPTION
The RawRead() function tries to read length bytes from the
current input position. The number of bytes read is returned.
The RawWrite() function writes length bytes to the current
output position in this memory file. This can't fail (unless
not enough memory can be allocated) and thus this function
always returns length.
RETURN VALUE
Both functions return the number of bytes copied.
COPYRIGHTS
This documentation and the code being documented is proprietary and cannot be duplicated without the express and written consent of Made to Order Software Coporation.
Copyright (c) 1999-2007 by Made to Order Software Corporation
All rights reserved.
AUTHORS
Alexis Wilke, Doug Barbieri
CLASS
moMemFile
NAME
InputSize - the size of the memory files in bytes
OutputSize - the size of the memory files in bytes
VERSION
Version: 1.2.0
SYNOPSIS
virtual size_t InputSize(void) const;
virtual size_t OutputSize(void) const;
DESCRIPTION
The InputSize() and OutputSize() functions both return
the current size of the memory file in bytes.
Whatever happens, the size of the input is always the
same as the size of the output.
RETURN VALUE
the size of the memory file in bytes
COPYRIGHTS
This documentation and the code being documented is proprietary and cannot be duplicated without the express and written consent of Made to Order Software Coporation.
Copyright (c) 1999-2007 by Made to Order Software Corporation
All rights reserved.
AUTHORS
Alexis Wilke, Doug Barbieri
Links:
molib
the sandbox
|