clean up
This commit is contained in:
parent
693d8d42ff
commit
d3b89e3b11
10 changed files with 150 additions and 156 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue