Logo white

Peter M. Groen / FlashMQ

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • FlashMQ
  • variablebyteint.h
  • Connect/connack in mqtt5
    313b3346
    Wiebe Cazemier authored
    2022-05-01 17:32:10 +0200  
    Browse Code ยป
variablebyteint.h 322 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef VARIABLEBYTEINT_H
#define VARIABLEBYTEINT_H

#include "cirbuf.h"

class VariableByteInt
{
    char bytes[4];
    uint8_t len = 0;

public:
    void readIntoBuf(CirBuf &buf) const;
    VariableByteInt &operator=(uint32_t x);
    uint8_t getLen() const;
    const char *data() const;
};

#endif // VARIABLEBYTEINT_H