#include <Stream.h>
Inherits cinder::StreamBase.
Inherited by cinder::IoStream, cinder::OStreamFile, and cinder::OStreamMem.
Enumerator |
---|
STREAM_BIG_ENDIAN |
|
STREAM_LITTLE_ENDIAN |
|
virtual cinder::OStream::~OStream |
( |
| ) |
|
|
virtual |
cinder::OStream::OStream |
( |
| ) |
|
|
protected |
void cinder::OStream::write |
( |
const std::string & |
s | ) |
|
Writes null-terminated string, including terminator.
template<typename T >
void cinder::OStream::write |
( |
T |
t | ) |
|
template<typename T >
void cinder::OStream::writeEndian |
( |
T |
t, |
|
|
uint8_t |
endian |
|
) |
| |
template<typename T >
void cinder::OStream::writeBig |
( |
T |
t | ) |
|
template<typename T >
void cinder::OStream::writeLittle |
( |
T |
t | ) |
|
void cinder::OStream::write |
( |
const Buffer & |
buffer | ) |
|
void cinder::OStream::writeData |
( |
const void * |
src, |
|
|
size_t |
size |
|
) |
| |
virtual void cinder::OStream::IOWrite |
( |
const void * |
t, |
|
|
size_t |
size |
|
) |
| |
|
protectedpure virtual |
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
.
virtual off_t cinder::StreamBase::tell |
( |
| ) |
const |
|
pure virtualinherited |
virtual void cinder::StreamBase::seekAbsolute |
( |
off_t |
absoluteOffset | ) |
|
|
pure virtualinherited |
virtual void cinder::StreamBase::seekRelative |
( |
off_t |
relativeOffset | ) |
|
|
pure virtualinherited |
fs::path cinder::StreamBase::mFileName |
|
protectedinherited |
bool cinder::StreamBase::mDeleteOnDestroy |
|
protectedinherited |
The documentation for this class was generated from the following files: