An OutputStream that writes to a given memory buffer address. More...
#include <yarp/os/impl/MemoryOutputStream.h>
Public Member Functions | |
MemoryOutputStream (char *location) | |
void | write (const yarp::os::Bytes &b) override |
Write a block of bytes to the stream. More... | |
void | close () override |
Terminate the stream. More... | |
bool | isOk () const override |
Check if the stream is ok or in an error state. More... | |
Public Member Functions inherited from yarp::os::OutputStream | |
virtual | ~OutputStream () |
Destructor. More... | |
virtual void | write (char ch) |
Write a single byte to the stream. More... | |
virtual void | write (const Bytes &b, int offset, int len) |
Write a block of bytes to the stream. More... | |
virtual void | flush () |
Make sure all pending write operations are finished. More... | |
virtual void | writeLine (const char *data, int len) |
Write some text followed by a line feed. More... | |
virtual bool | setWriteTimeout (double timeout) |
Set activity timeout. More... | |
virtual bool | setTypeOfService (int tos) |
virtual int | getTypeOfService () |
An OutputStream that writes to a given memory buffer address.
For speeding up.
Definition at line 24 of file MemoryOutputStream.h.
|
inline |
Definition at line 28 of file MemoryOutputStream.h.
|
inlineoverridevirtual |
Terminate the stream.
Implements yarp::os::OutputStream.
Definition at line 40 of file MemoryOutputStream.h.
|
inlineoverridevirtual |
Check if the stream is ok or in an error state.
Implements yarp::os::OutputStream.
Definition at line 44 of file MemoryOutputStream.h.
|
inlineoverridevirtual |
Write a block of bytes to the stream.
b | the bytes to write |
Implements yarp::os::OutputStream.
Definition at line 34 of file MemoryOutputStream.h.