Example #1
0
void InitData(RegistrarClient& client)
{
    client.WriteData(kKey, Package(&kData, sizeof(kData)));
}
Example #2
0
void InitData(RegistrarClient& client)
{
    client.WriteData(kKey1, Package(kData1.c_str(), kData1.size()));
    client.WriteData(kKey2, Package(&kData2, sizeof(kData2)));
}
Example #3
0
void InitData(RegistrarClient& client)
{
    client.WriteData(kKey1, const_cast<char*>(kData1.c_str()), kData1.size());
    client.WriteData(kKey2, &kData2, sizeof(kData2));
}