mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-05-11 00:49:42 +00:00
23 lines
278 B
C++
23 lines
278 B
C++
#include "header.h"
|
|
|
|
namespace ClientProtocol {
|
|
Header::Header() {
|
|
reset();
|
|
}
|
|
|
|
bool Header::isValid() const {
|
|
|
|
if (sizeof (*this) != 12) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
void Header::reset() {
|
|
size = 0;
|
|
command = 0;
|
|
triggerCommnad = 0;
|
|
}
|
|
}
|