#include <dataIStream.h>
Derived classes send the data using command packets.
Definition at line 23 of file dataIStream.h.
Basic data input | |
| template<typename T> | |
| DataIStream & | operator>> (T &value) |
| Read a POD data item. | |
| template<typename T> | |
| DataIStream & | operator>> (std::vector< T > &value) |
| Read a std::vector of POD data items. | |
| void | read (void *data, uint64_t size) |
| Read a number of bytes into a buffer. | |
| const void * | getRemainingBuffer () |
| Get the pointer to the data remaining in the current buffer. | |
| uint64_t | getRemainingBufferSize () |
| Get the size of the data remaining in the current buffer. | |
| void | advanceBuffer (const uint64_t offset) |
| Advance the current buffer by a number of bytes. | |
| virtual size_t | nRemainingBuffers () const =0 |
| Get the number of remaining buffers. | |
| virtual uint32_t | getVersion () const |
| virtual void | reset () |
| virtual bool | getNextBuffer (const uint8_t **buffer, uint64_t *size)=0 |
Public Member Functions | |
| template<> | |
| DataIStream & | operator>> (std::string &str) |
| template<> | |
| DataIStream & | operator>> (NodeID &nodeID) |
| DataIStream& eq::net::DataIStream::operator>> | ( | T & | value | ) | [inline] |
| DataIStream& eq::net::DataIStream::operator>> | ( | std::vector< T > & | value | ) | [inline] |
| void eq::net::DataIStream::read | ( | void * | data, | |
| uint64_t | size | |||
| ) |
| const void * eq::net::DataIStream::getRemainingBuffer | ( | ) |
Get the pointer to the data remaining in the current buffer.
Definition at line 56 of file dataIStream.cpp.
Referenced by eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().
| uint64_t eq::net::DataIStream::getRemainingBufferSize | ( | ) |
Get the size of the data remaining in the current buffer.
Definition at line 64 of file dataIStream.cpp.
Referenced by eq::net::FullSlaveCM::_unpackOneVersion(), eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().
| void eq::net::DataIStream::advanceBuffer | ( | const uint64_t | offset | ) |
Advance the current buffer by a number of bytes.
Definition at line 72 of file dataIStream.cpp.
Referenced by eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().
| virtual size_t eq::net::DataIStream::nRemainingBuffers | ( | ) | const [pure virtual] |
Get the number of remaining buffers.
Implemented in eq::net::ObjectDataIStream.
Referenced by eq::FrameData::applyInstanceData(), and eq::Frame::applyInstanceData().
0.6 by
1.5.5