MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / serializePropertySeq

Function serializePropertySeq

tests/security/IDL_Serialization/Main.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6const Encoding encoding_plain_big(Encoding::KIND_XCDR1, OpenDDS::DCPS::ENDIAN_BIG);
7
8void serializePropertySeq(ACE_Message_Block& mb, const char* str) {
9 mb.init(100);
10 OpenDDS::DCPS::Serializer s(&mb, encoding_plain_big);
11 DDS::PropertySeq seq(1);
12 seq.length(1);
13 seq[0].name = "a";
14 seq[0].value = str;
15 seq[0].propagate = true;
16 s << seq;
17}
18
19TEST(OptionalBinaryProperties, Deserialize)
20{

Callers 1

TESTFunction · 0.85

Calls 2

initMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected