#include <basestrm.h>
Inheritance diagram for MemoryStreamCopy:

Public Member Functions | |
| MemoryStreamCopy (pnstream stream) | |
| ~MemoryStreamCopy () | |
| void | writedata (const void *buf, int size) |
| writes data to the stream | |
| int | readdata (void *buf, int size, bool excpt=true) |
| Reads data from the stream. | |
| void | seek (int newpos) |
| Sets the stream pointer to a new location. An exception is thrown if the stream does not support seeking. | |
| int | getPosition (void) |
| int | getSize (void) |
| returns the size of the stream or -1 if the stream does not have a size | |
| ASCString | getLocation () |
| returns the location of the stream. | |
|
|
Definition at line 569 of file basestrm.cpp. References blocksize, tnstream::devicename, tnstream::getDeviceName(), malloc(), tnstream::readdata(), and red. |
|
|
Definition at line 603 of file basestrm.cpp. |
|
|
returns the location of the stream. This may be a complete english sentence describing how the stream (usually a file) can be found. Should only be used for informing the user. Reimplemented from tnstream. Definition at line 598 of file basestrm.cpp. References tnstream::devicename. |
|
|
Definition at line 176 of file basestrm.h. Referenced by stream_seek(). |
|
|
returns the size of the stream or -1 if the stream does not have a size
Reimplemented from tnstream. Definition at line 177 of file basestrm.h. Referenced by stream_seek(). |
|
||||||||||||||||
|
Reads data from the stream.
Implements tnstream. Definition at line 615 of file basestrm.cpp. References tnstream::getDeviceName(), and PolygonTriangulationLibrary::tr. Referenced by stream_read(). |
|
|
Sets the stream pointer to a new location. An exception is thrown if the stream does not support seeking.
Reimplemented from tnstream. Definition at line 635 of file basestrm.cpp. References tnstream::getDeviceName(). Referenced by stream_seek(). |
|
||||||||||||
|
writes data to the stream
Implements tnstream. Definition at line 610 of file basestrm.cpp. References tnstream::getDeviceName(), tnstream::reading, and tnstream::writing. |
1.4.2