NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::MemoryInputStream Class Reference

#include <Stream.hpp>

Inherits FW::InputStream.

Public Member Functions

 MemoryInputStream (void)
 
 MemoryInputStream (const void *ptr, int size)
 
template<class T >
 MemoryInputStream (const Array< T > &data)
 
virtual ~MemoryInputStream (void)
 
virtual int read (void *ptr, int size)
 
int getOffset (void) const
 
void seek (int ofs)
 
void reset (void)
 
void reset (const void *ptr, int size)
 
template<class T >
void reset (const Array< T > &data)
 
- Public Member Functions inherited from FW::InputStream
 InputStream (void)
 
virtual ~InputStream (void)
 
void readFully (void *ptr, int size)
 
U8 readU8 (void)
 
U16 readU16BE (void)
 
U16 readU16LE (void)
 
U32 readU32BE (void)
 
U32 readU32LE (void)
 
U64 readU64BE (void)
 
U64 readU64LE (void)
 

Detailed Description

Definition at line 142 of file Stream.hpp.

Constructor & Destructor Documentation

FW::MemoryInputStream::MemoryInputStream ( void  )
inline

Definition at line 145 of file Stream.hpp.

FW::MemoryInputStream::MemoryInputStream ( const void ptr,
int  size 
)
inline

Definition at line 146 of file Stream.hpp.

template<class T >
FW::MemoryInputStream::MemoryInputStream ( const Array< T > &  data)
inlineexplicit

Definition at line 147 of file Stream.hpp.

MemoryInputStream::~MemoryInputStream ( void  )
virtual

Definition at line 359 of file Stream.cpp.

Member Function Documentation

int FW::MemoryInputStream::getOffset ( void  ) const
inline

Definition at line 152 of file Stream.hpp.

int MemoryInputStream::read ( void ptr,
int  size 
)
virtual

Implements FW::InputStream.

Definition at line 365 of file Stream.cpp.

void FW::MemoryInputStream::reset ( void  )
inline

Definition at line 155 of file Stream.hpp.

void FW::MemoryInputStream::reset ( const void ptr,
int  size 
)
inline

Definition at line 156 of file Stream.hpp.

template<class T >
void FW::MemoryInputStream::reset ( const Array< T > &  data)
inline

Definition at line 157 of file Stream.hpp.

void FW::MemoryInputStream::seek ( int  ofs)
inline

Definition at line 153 of file Stream.hpp.


The documentation for this class was generated from the following files: