Public Member Functions | Protected Member Functions | Private Attributes | List of all members
rs2rosinternal::serialization::Stream Struct Reference

Stream base-class, provides common functionality for IStream and OStream. More...

#include <serialization.h>

Inheritance diagram for rs2rosinternal::serialization::Stream:
Inheritance graph
[legend]

Public Member Functions

ROS_FORCE_INLINE uint8_tadvance (uint32_t len)
 Advances the stream, checking bounds, and returns a pointer to the position before it was advanced. More...
 
uint8_tgetData ()
 
uint32_t getLength ()
 Returns the amount of space left in the stream. More...
 

Protected Member Functions

 Stream (uint8_t *_data, uint32_t _count)
 

Private Attributes

uint8_tdata_
 
uint8_tend_
 

Detailed Description

Stream base-class, provides common functionality for IStream and OStream.

Definition at line 701 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.

Constructor & Destructor Documentation

rs2rosinternal::serialization::Stream::Stream ( uint8_t _data,
uint32_t  _count 
)
inlineprotected

Member Function Documentation

ROS_FORCE_INLINE uint8_t* rs2rosinternal::serialization::Stream::advance ( uint32_t  len)
inline

Advances the stream, checking bounds, and returns a pointer to the position before it was advanced.

Exceptions
StreamOverrunExceptionif len would take this stream past the end of its buffer

Definition at line 712 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.

uint8_t* rs2rosinternal::serialization::Stream::getData ( )
inline
uint32_t rs2rosinternal::serialization::Stream::getLength ( )
inline

Returns the amount of space left in the stream.

Definition at line 728 of file third-party/realsense-file/rosbag/roscpp_serialization/include/ros/serialization.h.

Member Data Documentation

uint8_t* rs2rosinternal::serialization::Stream::data_
private
uint8_t* rs2rosinternal::serialization::Stream::end_
private

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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:43