HostPacket Struct Reference
Helper class for reading/writing packet content in host byte-order (LSB first) More...
#include <Packet.h>
Inheritance diagram for HostPacket:
Collaboration diagram for HostPacket:
Public Member Functions | |
uint16_t | peek16 () const |
uint16_t | read16 () const |
uint32_t | read32 () const |
void | write16 (uint16_t value) |
void | write32 (uint32_t value) |
![]() | |
Packet (void *data, uint16_t pos=0) | |
const uint8_t * | ptr () const |
uint8_t * | ptr () |
void | skip (uint16_t len) const |
uint8_t | peek8 () const |
uint8_t | read8 () const |
void | read (void *buffer, uint16_t len) const |
String | readString (uint16_t length) const |
void | write8 (uint8_t value) |
void | write (const void *s, uint16_t len) |
Additional Inherited Members | |
![]() | |
uint8_t * | data |
uint16_t | pos |
Detailed Description
Helper class for reading/writing packet content in host byte-order (LSB first)
Member Function Documentation
◆ peek16()
|
inline |
◆ read16()
|
inline |
◆ read32()
|
inline |
◆ write16()
|
inline |
◆ write32()
|
inline |
The documentation for this struct was generated from the following file: