2022-11-04 16:57:23 +01:00
|
|
|
#ifndef PAYLOAD_H
|
|
|
|
#define PAYLOAD_H
|
|
|
|
|
2022-11-06 23:30:21 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <vector>
|
|
|
|
|
2022-11-04 16:57:23 +01:00
|
|
|
class Payload
|
|
|
|
{
|
|
|
|
private:
|
2022-11-07 18:53:11 +01:00
|
|
|
std::vector<unsigned char> Data;
|
2022-11-04 16:57:23 +01:00
|
|
|
public:
|
2022-11-06 23:30:21 +01:00
|
|
|
size_t getSize();
|
2022-11-07 18:53:11 +01:00
|
|
|
unsigned char* getData();
|
2022-11-06 23:30:21 +01:00
|
|
|
|
2022-11-07 18:53:11 +01:00
|
|
|
void setData(std::vector<unsigned char>);
|
2022-11-06 23:30:21 +01:00
|
|
|
|
2022-11-07 18:53:11 +01:00
|
|
|
void push_char(unsigned char);
|
2022-11-09 17:49:55 +01:00
|
|
|
|
|
|
|
Payload();
|
|
|
|
Payload(std::vector<unsigned char>);
|
2022-11-04 16:57:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PAYLOAD_H */
|