MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / operator<<

Function operator<<

dds/DCPS/EncapsulationHeader.cpp:95–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool
96operator<<(Serializer& s,
97 const EncapsulationHeader& value)
98{
99 if (!value.is_good()) {
100 return false;
101 }
102 ACE_CDR::Octet data[EncapsulationHeader::serialized_size];
103 data[0] = (value.kind() >> 8) & 0xff;
104 data[1] = value.kind() & 0xff;
105 data[2] = (value.options() >> 8) & 0xff;
106 data[3] = value.options() & 0xff;
107 const bool ok = s.write_octet_array(&data[0],
108 EncapsulationHeader::serialized_size);
109 s.reset_alignment();
110 return ok;
111}
112
113bool
114from_encoding(EncapsulationHeader& header,

Callers

nothing calls this directly

Calls 1

reset_alignmentMethod · 0.80

Tested by

no test coverage detected