|
| | SizedPacketBuf (uint8_t descriptorSet=INVALID_DESCRIPTOR_SET) |
| |
| | SizedPacketBuf (microstrain::ConstU8ArrayView data) |
| | Construct by copying an existing buffer. More...
|
| |
| | SizedPacketBuf (const PacketView &packet) |
| | Creates a PacketBuf by copying an existing packet. 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...
|
| |
| microstrain::ArrayView< uint8_t, BufferSize > | buffer () |
| | Returns an ArrayView covering the entire buffer. More...
|
| |
| void | copyFrom (microstrain::ConstU8ArrayView data) |
| | Copies the data from a U8ArrayView 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::U8ArrayView buffer, uint8_t descriptorSet) |
| | Create a new MIP packet in an existing buffer. More...
|
| |
| | PacketView (microstrain::ConstU8ArrayView buffer) |
| | Create a reference to an existing MIP packet. More...
|
| |
| microstrain::ConstU8ArrayView | buffer () const |
| |
| microstrain::U8ArrayView | buffer_w () |
| | Gets the entire storage buffer for the packet. More...
|
| |
| microstrain::ConstU8ArrayView | data () const |
| |
| microstrain::ConstU8ArrayView | payload () const |
| |
| microstrain::U8ArrayView | payload_w () |
| | Get the payload as raw bytes. More...
|
| |
| Serializer | createField (uint8_t fieldDescriptor, uint8_t length) |
| |
| uint8_t | dataAt (const size_t i) const |
| |
| uint8_t & | dataAt (const size_t i) |
| |
| uint8_t | dataAt (const Index i) const |
| |
| uint8_t & | dataAt (const Index i) |
| |
| uint8_t | payloadAt (const size_t i) const |
| |
| uint8_t & | payloadAt (const size_t i) |
| | Get payload byte at index i. More...
|
| |
| bool | addField (uint8_t fieldDescriptor, microstrain::ConstU8ArrayView payload) |
| | Get writable payload byte at index i. More...
|
| |
| bool | addField (const FieldView &field) |
| | Copies the given mip field to the packet. More...
|
| |
| AllocatedField | createField (uint8_t fieldDescriptor) |
| |
| 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 (microstrain::U8ArrayView buffer) const |
| | Copies this packet to an external buffer (span version). More...
|
| |