Message_request.cpp
Go to the documentation of this file.
1 
47 #include "roch_base/core/Number.h"
48 
49 namespace sawyer
50 {
51 
52  Request::Request(uint16_t type, uint16_t freq) : Message()
53  {
55  utob(getPayloadPointer(), 2, freq);
56  setType(type);
57  makeValid();
58 
59  }
60 
61  Request::Request(const Request &other) : Message(other)
62  {
63  }
64 
65 }; // namespace sawyer
66 
void setType(uint16_t type)
Definition: Message.cpp:272
void utob(void *dest, size_t dest_len, uint64_t src)
Definition: Number.cpp:55
uint8_t * getPayloadPointer(size_t offset=0)
Definition: Message.cpp:218
Request(uint16_t type, uint16_t freq=0)
void setPayloadLength(uint8_t len)
Definition: Message.cpp:282
void makeValid()
Definition: Message.cpp:372


roch_base
Author(s): Mike Purvis , Paul Bovbel , Chen
autogenerated on Mon Jun 10 2019 14:41:14