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

An OutputStream that thinly wraps a char* buffer. More...

#include <ByteStreams.h>

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

Public Member Functions

 ByteOutputStream (char *in_buffer, size_t in_N)
 Constructor, wraps a char* buffer of size N.
 
virtual void write_binary (const char *p, size_t n)
 Writes n bytes into buffer, reading from p. Throws it total number of bytes exceeds N (overrun).
 
size_t remaining () const
 Returns how many unwritten bytes still remain.
 
- Public Member Functions inherited from myra::OutputStream
template<class T >
void write (const T &t)
 

Detailed Description

An OutputStream that thinly wraps a char* buffer.


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