|
| | SizedPacketBuf (uint8_t descriptorSet=INVALID_DESCRIPTOR_SET) |
| |
| | SizedPacketBuf (const uint8_t *data, size_t length) |
| | Creates a PacketBuf by copying existing data. More...
|
| |
| | SizedPacketBuf (const PacketView &packet) |
| |
| | SizedPacketBuf (microstrain::Span< const uint8_t > data) |
| | Construct from a span. More...
|
| |
| | SizedPacketBuf (const SizedPacketBuf &other) |
| | Copy constructor. More...
|
| |
| template<size_t OtherSize> |
| | SizedPacketBuf (const SizedPacketBuf< OtherSize > &other) |
| | Copy constructor (required to insert packets into std::vector in some cases). More...
|
| |
| SizedPacketBuf & | operator= (const SizedPacketBuf &other) |
| | Copy assignment operator. More...
|
| |
| template<size_t OtherSize> |
| SizedPacketBuf & | operator= (const SizedPacketBuf< OtherSize > &other) |
| | Assignment operator, copies data from another buffer to this one. More...
|
| |
| template<class FieldType > |
| | SizedPacketBuf (const FieldType &field, uint8_t fieldDescriptor=INVALID_FIELD_DESCRIPTOR, typename std::enable_if< std::is_class< FieldType >::value, void >::type *=nullptr) |
| | Create a packet containing just the given field. More...
|
| |
| PacketView | ref () |
| | Explicitly obtains a reference to the packet data. More...
|
| |
| const PacketView & | ref () const |
| | Explicitly obtains a const reference to the packet data. More...
|
| |
| uint8_t * | buffer () |
| | Returns a pointer to the underlying buffer. This is technically the same as PacketRef::pointer but is writable. More...
|
| |
| microstrain::Span< uint8_t, BufferSize > | bufferSpan () |
| | Returns a Span covering the entire buffer. More...
|
| |
| void | copyFrom (const uint8_t *data, size_t length) |
| | Copies the data from the pointer to this buffer. The data is not inspected. More...
|
| |
| void | copyFrom (const PacketView &packet) |
| | Copies an existing packet. The packet is assumed to be valid (undefined behavior otherwise). More...
|
| |
| | PacketView (uint8_t *buffer, size_t bufferSize, uint8_t descriptorSet) |
| | Create a brand-new MIP packet in the given buffer. More...
|
| |
| | PacketView (const uint8_t *buffer, size_t length) |
| | Initializes a MIP packet from an existing buffer. More...
|
| |
| | PacketView (const C::mip_packet_view *other) |
| | Constructs a C++ PacketRef class from the base C object. More...
|
| |
| | PacketView (const C::mip_packet_view &other) |
| | Constructs a C++ PacketRef class from the base C object. More...
|
| |
| | PacketView (microstrain::Span< uint8_t > buffer, uint8_t descriptorSet) |
| | Create a new MIP packet in an existing buffer. More...
|
| |
| | PacketView (microstrain::Span< const uint8_t > buffer) |
| | Create a reference to an existing MIP packet. More...
|
| |
| bool | isData () const |
| |
| Serializer | createField (uint8_t fieldDescriptor, uint8_t length) |
| |
| microstrain::Span< const uint8_t > | totalSpan () const |
| | Gets a span over the whole packet. More...
|
| |
| microstrain::Span< const uint8_t > | payloadSpan () const |
| | Gets a span over just the payload. More...
|
| |
| AllocatedField | createField (uint8_t fieldDescriptor) |
| |
| uint8_t | operator[] (unsigned int index) const |
| |
| FieldIterator | begin () const |
| |
| FieldIterator | end () const |
| |
| FieldView | firstField () const |
| | Returns the first field in the packet. More...
|
| |
| template<class FieldType > |
| bool | addField (const FieldType &field, uint8_t fieldDescriptor=INVALID_FIELD_DESCRIPTOR) |
| | Adds a field of the given type to the packet. More...
|
| |
| bool | copyPacketTo (uint8_t *buffer, size_t maxLength) |
| | Copies this packet to an external buffer. More...
|
| |
| bool | copyPacketTo (microstrain::Span< uint8_t > buffer) |
| | Copies this packet to an external buffer (span version). More...
|
| |
template<size_t BufferSize>
class mip::SizedPacketBuf< BufferSize >
A mip packet with a self-contained buffer (useful with std::vector).