This commit is contained in:
j3d1 2016-01-23 04:25:55 +01:00
parent 693d8d42ff
commit d3b89e3b11
10 changed files with 150 additions and 156 deletions

View file

@ -277,6 +277,14 @@ void Packet::pull(bytes &arr, int &index, int &ret) {
ret |= arr[index++] & 0xFF;
}
byte Packet::getOpCode() const {
return opCode;
}
void Packet::setOpCode(byte opCode) {
this->opCode = opCode;
}
void Packet::pull(bytes &arr, int &index, dataset &ret) {
pull(arr, index, ret.type);
pull(arr, index, ret.len);