MyraMath
|
An OutputStream that thinly wraps a char* buffer. More...
#include <ByteStreams.h>
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. | |
![]() | |
template<class T > | |
void | write (const T &t) |
An OutputStream that thinly wraps a char* buffer.