mcping/Payload.cpp

18 lines
279 B
C++

#include "Payload.h"
void Payload::push_char(unsigned char load){
Data.push_back(load);
}
unsigned char* Payload::getData(){
return Data.data();
}
void Payload::setData(std::vector<unsigned char> m_data){
Data = m_data;
}
size_t Payload::getSize(){
return Data.size();
}