Struct UbloxStream

Inheritance Relationships

Derived Types

Struct Documentation

struct UbloxStream

UbloxStream base-class, provides common functionality for UbloxIStream and UbloxOStream.

Subclassed by ublox::UbloxIStream, ublox::UbloxOStream

Public Functions

inline uint8_t *getData()
inline uint8_t *advance(uint32_t len)

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

Throws:

StreamOverrunException – if len would take this stream past the end of its buffer

inline uint32_t getLength()

Returns the amount of space left in the stream.

Protected Functions

inline UbloxStream(uint8_t *_data, uint32_t _count)