File stream class.
More...
#include <PGFstream.h>
File stream class.
A PGF stream subclass for external storage files.
- Author
- C. Stamm
CPGFFileStream::CPGFFileStream |
( |
HANDLE |
hFile | ) |
|
|
inline |
HANDLE CPGFFileStream::GetHandle |
( |
| ) |
|
|
inline |
UINT64 CPGFFileStream::GetPos |
( |
| ) |
const |
|
virtual |
Get current stream position.
- Returns
- Current stream position
Implements CPGFStream.
virtual bool CPGFFileStream::IsValid |
( |
| ) |
const |
|
inlinevirtual |
Check stream validity.
- Returns
- True if stream and current position is valid
Implements CPGFStream.
void CPGFFileStream::Read |
( |
int * |
count, |
|
|
void * |
buffer |
|
) |
| |
|
virtual |
Read some bytes from this stream and stores them into a buffer.
- Parameters
-
count | A pointer to a value containing the number of bytes should be read. After this call it contains the number of read bytes. |
buffer | A memory buffer |
Implements CPGFStream.
void CPGFFileStream::SetPos |
( |
short |
posMode, |
|
|
INT64 |
posOff |
|
) |
| |
|
virtual |
Set stream position either absolute or relative.
- Parameters
-
posMode | A position mode (FSFromStart, FSFromCurrent, FSFromEnd) |
posOff | A new stream position (absolute positioning) or a position offset (relative positioning) |
Implements CPGFStream.
void CPGFFileStream::Write |
( |
int * |
count, |
|
|
void * |
buffer |
|
) |
| |
|
virtual |
Write some bytes out of a buffer into this stream.
- Parameters
-
count | A pointer to a value containing the number of bytes should be written. After this call it contains the number of written bytes. |
buffer | A memory buffer |
Implements CPGFStream.
The documentation for this class was generated from the following files: