Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Macros | Functions
Stream.cpp File Reference
#include "cinder/Cinder.h"
#include "cinder/Stream.h"
#include "cinder/Utilities.h"
#include <stdio.h>
#include <limits>
#include <boost/scoped_array.hpp>
#include <iostream>
#include <boost/preprocessor/seq/for_each.hpp>
Include dependency graph for Stream.cpp:

Namespaces

 cinder
 

Macros

#define STREAM_PROTOTYPES(r, data, T)
 

Functions

IStreamFileRef cinder::loadFileStream (const fs::path &path)
 Opens the file lcoated at path for read access as a stream. More...
 
OStreamFileRef cinder::writeFileStream (const fs::path &path, bool createParents=true)
 Opens the file located at path for write access as a stream, and creates it if it does not exist. Optionally creates any intermediate directories when createParents is true. More...
 
IoStreamFileRef cinder::readWriteFileStream (const fs::path &path)
 Opens a path for read-write access as a stream. More...
 
void cinder::loadStreamMemory (IStreamRef is, std::shared_ptr< uint8_t > *resultData, size_t *resultDataSize)
 Loads the contents of a stream into a contiguous block of memory, pointed to by resultData. The size of this block is stored in resultDataSize. More...
 
Buffer cinder::loadStreamBuffer (IStreamRef is)
 Loads the contents of a stream into a Buffer. More...
 

Macro Definition Documentation

#define STREAM_PROTOTYPES (   r,
  data,
 
)
Value:
template void OStream::write<T>( T t ); \
template void OStream::writeEndian<T>( T t, uint8_t endian ); \
template void OStream::writeBig<T>( T t ); \
template void OStream::writeLittle<T>( T t ); \
template void IStreamCinder::read<T>( T *t ); \
template void IStreamCinder::readEndian<T>( T *t, uint8_t endian ); \
template void IStreamCinder::readBig<T>( T *t ); \
template void IStreamCinder::readLittle<T>( T *t );
GLdouble GLdouble t
Definition: GLee.h:1426