VCF::LinuxFileStream Class Reference
This is going to based on the C runtime's fopen/fread/fwrite stream API for now. More...
#include <LinuxFileStream.h>
Inheritance diagram for VCF::LinuxFileStream:

Public Member Functions | |
| LinuxFileStream (const String &filename, const FileStreamAccessType &accessType) | |
| LinuxFileStream (File *file) | |
| virtual | ~LinuxFileStream () |
| virtual void | seek (const uint64 &offset, const SeekType &offsetFrom) |
| moves the seek pointer offset number of bytes in the direction specified by the offsetFrom argument. | |
| virtual uint64 | getSize () |
| returns the size of the file stream in bytes | |
| virtual uint64 | read (unsigned char *bytesToRead, uint64 sizeOfBytes) |
| reads sizeOfBytes bytes from the stream into the buffer bytesToRead | |
| virtual uint64 | write (const unsigned char *bytesToWrite, uint64 sizeOfBytes) |
| writes sizeOfBytes bytes to the file stream from the buffer bytesToWrite. | |
| virtual char * | getBuffer () |
| returns a pointer to the buffer that represents the file contents | |
Detailed Description
This is going to based on the C runtime's fopen/fread/fwrite stream API for now.
Constructor & Destructor Documentation
|
||||||||||||
|
|
|
|
|
|
|
|
Member Function Documentation
|
|
returns a pointer to the buffer that represents the file contents
Implements VCF::FileStreamPeer. |
|
|
returns the size of the file stream in bytes
Implements VCF::FileStreamPeer. |
|
||||||||||||
|
reads sizeOfBytes bytes from the stream into the buffer bytesToRead
Implements VCF::FileStreamPeer. |
|
||||||||||||
|
moves the seek pointer offset number of bytes in the direction specified by the offsetFrom argument.
Implements VCF::FileStreamPeer. |
|
||||||||||||
|
writes sizeOfBytes bytes to the file stream from the buffer bytesToWrite.
Implements VCF::FileStreamPeer. |
The documentation for this class was generated from the following file:
- vcf/FoundationKit/LinuxFileStream.h
