Exemple #1
0
 inline void setSource(const Address &address) const {
     memcpy(header + GEOMESH_HEADER_SOURCE_ADDRESS, address.getBytes(), ADDRESS_LENGTH_OCTETS);
 }
Exemple #2
0
 inline void setDestination(const Address &address) const {
     memcpy(header + GEOMESH_HEADER_DESTINATION_ADDRESS, address.getBytes(), ADDRESS_LENGTH_OCTETS);
 }
Exemple #3
0
 /**
  * @return Whether the specified address is equal to the address in the IPv6 destination header field.
  */
 inline bool isDestination(const Address &address) const {
     return memcmp(header + GEOMESH_HEADER_DESTINATION_ADDRESS, address.getBytes(), ADDRESS_LENGTH_OCTETS) == 0;
 }