#include <Stream.h>
Inherits cinder::OStream.
|
| OStreamFile (FILE *aFile, bool aOwnsFile=true) |
|
virtual void | IOWrite (const void *t, size_t size) |
|
Enumerator |
---|
STREAM_BIG_ENDIAN |
|
STREAM_LITTLE_ENDIAN |
|
cinder::OStreamFile::~OStreamFile |
( |
| ) |
|
cinder::OStreamFile::OStreamFile |
( |
FILE * |
aFile, |
|
|
bool |
aOwnsFile = true |
|
) |
| |
|
protected |
OStreamFileRef cinder::OStreamFile::create |
( |
FILE * |
file, |
|
|
bool |
ownsFile = true |
|
) |
| |
|
static |
Creates a new OStreamFileRef from a C-style file pointer FILE as returned by fopen(). If ownsFile the returned stream will destroy the stream upon its own destruction.
off_t cinder::OStreamFile::tell |
( |
| ) |
const |
|
virtual |
Returns the current position of the stream measured in bytes **/.
Implements cinder::StreamBase.
void cinder::OStreamFile::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::OStreamFile::seekRelative |
( |
off_t |
relativeOffset | ) |
|
|
virtual |
Moves the current position of the stream by relativeOffset bytes.
Implements cinder::StreamBase.
FILE* cinder::OStreamFile::getFILE |
( |
| ) |
|
void cinder::OStreamFile::IOWrite |
( |
const void * |
t, |
|
|
size_t |
size |
|
) |
| |
|
protectedvirtual |
void cinder::OStream::write |
( |
const std::string & |
s | ) |
|
|
inherited |
Writes null-terminated string, including terminator.
template<typename T >
void cinder::OStream::write |
( |
T |
t | ) |
|
|
inherited |
void cinder::OStream::write |
( |
const Buffer & |
buffer | ) |
|
|
inherited |
template<typename T >
void cinder::OStream::writeEndian |
( |
T |
t, |
|
|
uint8_t |
endian |
|
) |
| |
|
inherited |
template<typename T >
void cinder::OStream::writeBig |
( |
T |
t | ) |
|
|
inherited |
template<typename T >
void cinder::OStream::writeLittle |
( |
T |
t | ) |
|
|
inherited |
void cinder::OStream::writeData |
( |
const void * |
src, |
|
|
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::OStreamFile::mFile |
|
protected |
bool cinder::OStreamFile::mOwnsFile |
|
protected |
fs::path cinder::StreamBase::mFileName |
|
protectedinherited |
bool cinder::StreamBase::mDeleteOnDestroy |
|
protectedinherited |
The documentation for this class was generated from the following files: