mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 03:51:35 +01:00
Code cleanup and use same syntax on the entire project
Initial code cleanup More code cleanup Cleanup more code Cleanup Dot11 code Fix OSX build issue Cleanup examples Fix ref and pointer declaration syntax Fix braces
This commit is contained in:
@@ -49,10 +49,10 @@ public:
|
||||
static const PDU::PDUType pdu_flag;
|
||||
|
||||
DummyPDU(const uint8_t* data, uint32_t sz) : buffer(data, data + sz) { }
|
||||
DummyPDU *clone() const { return new DummyPDU<n>(*this); }
|
||||
DummyPDU* clone() const { return new DummyPDU<n>(*this); }
|
||||
uint32_t header_size() const { return (uint32_t)buffer.size(); }
|
||||
PDUType pdu_type() const { return pdu_flag; }
|
||||
void write_serialization(uint8_t *data, uint32_t, const PDU *)
|
||||
void write_serialization(uint8_t* data, uint32_t, const PDU *)
|
||||
{
|
||||
std::copy(buffer.begin(), buffer.end(), data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user