#include <Stream.h>
Inherits cinder::IStreamCinder.
|
| IStreamFile (FILE *aFile, bool aOwnsFile=true, int32_t aDefaultBufferSize=2048) |
|
virtual void | IORead (void *t, size_t size) |
|
size_t | readDataImpl (void *dest, size_t maxSize) |
|
Enumerator |
---|
STREAM_BIG_ENDIAN |
|
STREAM_LITTLE_ENDIAN |
|
cinder::IStreamFile::~IStreamFile |
( |
| ) |
|
cinder::IStreamFile::IStreamFile |
( |
FILE * |
aFile, |
|
|
bool |
aOwnsFile = true , |
|
|
int32_t |
aDefaultBufferSize = 2048 |
|
) |
| |
|
protected |
IStreamFileRef cinder::IStreamFile::create |
( |
FILE * |
file, |
|
|
bool |
ownsFile = true , |
|
|
int32_t |
defaultBufferSize = 2048 |
|
) |
| |
|
static |
Creates a new IStreamFileRef from a C-style file pointer FILE as returned by fopen(). If ownsFile the returned stream will destroy the stream upon its own destruction.
size_t cinder::IStreamFile::readDataAvailable |
( |
void * |
dest, |
|
|
size_t |
maxSize |
|
) |
| |
|
virtual |
void cinder::IStreamFile::seekAbsolute |
( |
off_t |
absoluteOffset | ) |
|
|
virtual |
Sets the current position of the stream to byte absoluteOffset. A negative offset is relative to the end of the file.
Implements cinder::StreamBase.
void cinder::IStreamFile::seekRelative |
( |
off_t |
relativeOffset | ) |
|
|
virtual |
Moves the current position of the stream by relativeOffset bytes.
Implements cinder::StreamBase.
off_t cinder::IStreamFile::tell |
( |
| ) |
const |
|
virtual |
Returns the current position of the stream measured in bytes **/.
Implements cinder::StreamBase.
off_t cinder::IStreamFile::size |
( |
| ) |
const |
|
virtual |
bool cinder::IStreamFile::isEof |
( |
| ) |
const |
|
virtual |
FILE* cinder::IStreamFile::getFILE |
( |
| ) |
|
void cinder::IStreamFile::IORead |
( |
void * |
t, |
|
|
size_t |
size |
|
) |
| |
|
protectedvirtual |
size_t cinder::IStreamFile::readDataImpl |
( |
void * |
dest, |
|
|
size_t |
maxSize |
|
) |
| |
|
protected |
template<typename T >
void cinder::IStreamCinder::read |
( |
T * |
t | ) |
|
|
inherited |
void cinder::IStreamCinder::read |
( |
std::string * |
s | ) |
|
|
inherited |
Reads characters until a null terminator.
void cinder::IStreamCinder::read |
( |
fs::path * |
p | ) |
|
|
inherited |
template<typename T >
void cinder::IStreamCinder::readEndian |
( |
T * |
t, |
|
|
uint8_t |
endian |
|
) |
| |
|
inherited |
template<typename T >
void cinder::IStreamCinder::readBig |
( |
T * |
t | ) |
|
|
inherited |
template<typename T >
void cinder::IStreamCinder::readLittle |
( |
T * |
t | ) |
|
|
inherited |
void cinder::IStreamCinder::readFixedString |
( |
char * |
t, |
|
|
size_t |
maxSize, |
|
|
bool |
nullTerminate |
|
) |
| |
|
inherited |
void cinder::IStreamCinder::readFixedString |
( |
std::string * |
t, |
|
|
size_t |
size |
|
) |
| |
|
inherited |
std::string cinder::IStreamCinder::readLine |
( |
| ) |
|
|
inherited |
void cinder::IStreamCinder::readData |
( |
void * |
dest, |
|
|
size_t |
size |
|
) |
| |
|
inherited |
static uint8_t cinder::StreamBase::getNativeEndianness |
( |
| ) |
|
|
staticinherited |
const fs::path& cinder::StreamBase::getFileName |
( |
| ) |
const |
|
inherited |
Returns the file name of the path from which a Stream originated when relevant. Empty string when undefined.
void cinder::StreamBase::setFileName |
( |
const fs::path & |
aFileName | ) |
|
|
inherited |
Sets the file name of the path from which a Stream originated when relevant. Empty string when undefined.
bool cinder::StreamBase::getDeleteOnDestroy |
( |
| ) |
const |
|
inherited |
Returns whether the Stream has been requested to destroy its source upon its own destruction. For example, IStreamFile will delete its source file. Ignored in some types of streams. Defaults to false
.
void cinder::StreamBase::setDeleteOnDestroy |
( |
bool |
enable = true | ) |
|
|
inherited |
Sets whether the Stream has been requested to destroy its source upon its own destruction. For example, IStreamFile will delete its source file. Ignored in some types of streams. Defaults to false
.
FILE* cinder::IStreamFile::mFile |
|
protected |
bool cinder::IStreamFile::mOwnsFile |
|
protected |
size_t cinder::IStreamFile::mBufferSize |
|
protected |
size_t cinder::IStreamFile::mDefaultBufferSize |
|
protected |
std::shared_ptr<uint8_t> cinder::IStreamFile::mBuffer |
|
protected |
off_t cinder::IStreamFile::mBufferOffset |
|
protected |
off_t cinder::IStreamFile::mBufferFileOffset |
|
protected |
off_t cinder::IStreamFile::mSize |
|
mutableprotected |
bool cinder::IStreamFile::mSizeCached |
|
mutableprotected |
const int cinder::IStreamCinder::MINIMUM_BUFFER_SIZE = 8 |
|
staticprotectedinherited |
fs::path cinder::StreamBase::mFileName |
|
protectedinherited |
bool cinder::StreamBase::mDeleteOnDestroy |
|
protectedinherited |
The documentation for this class was generated from the following files: