VCF::FileStreamPeer Class Reference
FileStreamPeer is a basic file stream interface to wrap native file IO OS calls. More...
#include <vcf/FoundationKit/FileStreamPeer.h>
Inheritance diagram for VCF::FileStreamPeer:

Public Member Functions | |
| virtual | ~FileStreamPeer () |
| virtual void | seek (const uint64 &offset, const SeekType &offsetFrom)=0 |
| moves the seek pointer offset number of bytes in the direction specified by the offsetFrom argument. | |
| virtual uint64 | getSize ()=0 |
| returns the size of the file stream in bytes | |
| virtual uint64 | read (unsigned char *bytesToRead, uint64 sizeOfBytes)=0 |
| reads sizeOfBytes bytes from the stream into the buffer bytesToRead | |
| virtual uint64 | write (const unsigned char *bytesToWrite, uint64 sizeOfBytes)=0 |
| writes sizeOfBytes bytes to the file stream from the buffer bytesToWrite. | |
| virtual char * | getBuffer ()=0 |
| returns a pointer to the buffer that represents the file contents | |
Detailed Description
FileStreamPeer is a basic file stream interface to wrap native file IO OS calls.Under Win32 this will involve calls to ReadFile() and WriteFile, among others.
- Author:
- Jim Crafton
- Version:
- 1.0
Constructor & Destructor Documentation
|
|
|
Member Function Documentation
|
|
returns a pointer to the buffer that represents the file contents
Implemented in VCF::LinuxFileStream, VCF::OSXFileStream, and VCF::Win32FileStream. |
|
|
returns the size of the file stream in bytes
Implemented in VCF::LinuxFileStream, VCF::OSXFileStream, and VCF::Win32FileStream. |
|
||||||||||||
|
reads sizeOfBytes bytes from the stream into the buffer bytesToRead
Implemented in VCF::LinuxFileStream, VCF::OSXFileStream, and VCF::Win32FileStream. |
|
||||||||||||
|
moves the seek pointer offset number of bytes in the direction specified by the offsetFrom argument.
Implemented in VCF::LinuxFileStream, VCF::OSXFileStream, and VCF::Win32FileStream. |
|
||||||||||||
|
writes sizeOfBytes bytes to the file stream from the buffer bytesToWrite.
Implemented in VCF::LinuxFileStream, VCF::OSXFileStream, and VCF::Win32FileStream. |
The documentation for this class was generated from the following file:
- vcf/FoundationKit/FileStreamPeer.h
