YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::os::impl::MemoryOutputStream Class Reference

An OutputStream that writes to a given memory buffer address. More...

#include <yarp/os/impl/MemoryOutputStream.h>

+ Inheritance diagram for yarp::os::impl::MemoryOutputStream:

Public Member Functions

 MemoryOutputStream (char *location)
 
void write (const yarp::os::Bytes &b) override
 Write a block of bytes to the stream.
 
void close () override
 Terminate the stream.
 
bool isOk () const override
 Check if the stream is ok or in an error state.
 
- Public Member Functions inherited from yarp::os::OutputStream
virtual ~OutputStream ()
 Destructor.
 
virtual void write (char ch)
 Write a single byte to the stream.
 
virtual void write (const Bytes &b, int offset, int len)
 Write a block of bytes to the stream.
 
virtual void flush ()
 Make sure all pending write operations are finished.
 
virtual void writeLine (const char *data, int len)
 Write some text followed by a line feed.
 
virtual bool setWriteTimeout (double timeout)
 Set activity timeout.
 
virtual bool setTypeOfService (int tos)
 
virtual int getTypeOfService ()
 

Detailed Description

An OutputStream that writes to a given memory buffer address.

For speeding up.

Definition at line 19 of file MemoryOutputStream.h.

Constructor & Destructor Documentation

◆ MemoryOutputStream()

yarp::os::impl::MemoryOutputStream::MemoryOutputStream ( char location)
inline

Definition at line 23 of file MemoryOutputStream.h.

Member Function Documentation

◆ close()

void yarp::os::impl::MemoryOutputStream::close ( )
inlineoverridevirtual

Terminate the stream.

Implements yarp::os::OutputStream.

Definition at line 35 of file MemoryOutputStream.h.

◆ isOk()

bool yarp::os::impl::MemoryOutputStream::isOk ( ) const
inlineoverridevirtual

Check if the stream is ok or in an error state.

Returns
true iff the stream is ok

Implements yarp::os::OutputStream.

Definition at line 39 of file MemoryOutputStream.h.

◆ write()

void yarp::os::impl::MemoryOutputStream::write ( const yarp::os::Bytes b)
inlineoverridevirtual

Write a block of bytes to the stream.

Parameters
bthe bytes to write

Implements yarp::os::OutputStream.

Definition at line 29 of file MemoryOutputStream.h.


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