Input Stream for reading files.
More...
#include <CineonStream.h>
Input Stream for reading files.
file pointing positioning offset
Enumerator |
---|
kStart |
beginning of the file
|
kCurrent |
current file pointer
|
kEnd |
end of the file
|
bool InStream::EndOfFile |
( |
| ) |
const |
|
virtual |
Query if end of file has been reached.
- Returns
- end of file true/false
bool InStream::Open |
( |
const char * |
fn | ) |
|
|
virtual |
Open file.
- Parameters
-
- Returns
- success true/false
size_t InStream::Read |
( |
void * |
buf, |
|
|
const size_t |
size |
|
) |
| |
|
virtual |
Read data from file.
- Parameters
-
buf | data buffer |
size | bytes to read |
- Returns
- number of bytes read
size_t InStream::ReadDirect |
( |
void * |
buf, |
|
|
const size_t |
size |
|
) |
| |
|
virtual |
Read data from file without any buffering as fast as possible.
- Parameters
-
buf | data buffer |
size | bytes to read |
- Returns
- number of bytes read
void InStream::Rewind |
( |
| ) |
|
|
virtual |
Rewind file pointer to beginning of file.
bool InStream::Seek |
( |
long |
offset, |
|
|
Origin |
origin |
|
) |
| |
|
virtual |
Seek to a position in the file.
- Parameters
-
offset | offset from originating position |
origin | originating position |
- Returns
- success true/false
The documentation for this class was generated from the following files:
- /tmp/B.92ecc562-e5e3-49c8-b0a5-c7c9dfb207f9/BUILD/libcineon/libcineon/CineonStream.h
- /tmp/B.92ecc562-e5e3-49c8-b0a5-c7c9dfb207f9/BUILD/libcineon/libcineon/InStream.cpp