MyraMath
Public Member Functions | List of all members
myra::ByteInputStream Class Reference

An InputStream that thinly wraps a const char* buffer. More...

#include <ByteStreams.h>

Inheritance diagram for myra::ByteInputStream:
[legend]
Collaboration diagram for myra::ByteInputStream:
[legend]

Public Member Functions

 ByteInputStream (const char *in_buffer, size_t in_N)
 Constructor, wraps a const char* buffer of size N.
 
virtual void read_binary (char *p, size_t n)
 Reads n bytes from buffer, writing into p. Throws if total number of bytes exceeds N (overrun).
 
size_t remaining () const
 Returns how many unread bytes still remain.
 
- Public Member Functions inherited from myra::InputStream
template<class T >
read ()
 

Detailed Description

An InputStream that thinly wraps a const char* buffer.


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