Packet writing
-
struct Packet
- #include <Packet.h>
Helper class for reading/writing packet content.
Subclassed by HostPacket, NetworkPacket
Public Functions
-
inline Packet(void *data, uint16_t pos = 0)
-
inline const uint8_t *ptr() const
-
inline uint8_t *ptr()
-
inline void skip(uint16_t len) const
-
inline uint8_t peek8() const
-
inline uint8_t read8() const
-
inline void read(void *buffer, uint16_t len) const
-
inline void write8(uint8_t value)
-
inline void write(const void *s, uint16_t len)
-
inline Packet(void *data, uint16_t pos = 0)