dng_file_stream Class Reference
A stream to/from a disk file. See
dng_stream for read/write interface.
More...
#include <dng_file_stream.h>
List of all members.
|
Public Member Functions |
| dng_file_stream (const char *filename, bool output=false, uint32 bufferSize=kDefaultBufferSize) |
Protected Member Functions |
virtual uint64 | DoGetLength () |
virtual void | DoRead (void *data, uint32 count, uint64 offset) |
virtual void | DoWrite (const void *data, uint32 count, uint64 offset) |
Detailed Description
A stream to/from a disk file. See
dng_stream for read/write interface.
Constructor & Destructor Documentation
dng_file_stream::dng_file_stream |
( |
const char * |
filename, |
|
|
bool |
output = false , |
|
|
uint32 |
bufferSize = kDefaultBufferSize | |
|
) |
| | |
Open a stream on a file.
- Parameters:
-
| filename | Pathname in platform synax. |
| output | Set to true if writing, false otherwise. |
| bufferSize | size of internal buffer to use. Defaults to 4k. |
References ThrowOpenFile(), and ThrowSilentError().
The documentation for this class was generated from the following files: