MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / addSpecificData

Method addSpecificData

src/remote/server/server.cpp:6674–6698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6672
6673
6674void rem_port::addSpecificData(const PathName& type, const PathName& plugin, unsigned length, const void* data)
6675{
6676 KnownServerKey* key = nullptr;
6677 for (unsigned i = 0; i < port_known_server_keys.getCount(); ++i)
6678 {
6679 //KnownServerKey
6680 auto& k = port_known_server_keys[i];
6681 if (k.type == type)
6682 {
6683 key = &k;
6684 break;
6685 }
6686 }
6687
6688 if (!key)
6689 {
6690 key = &port_known_server_keys.add();
6691 key->type = type;
6692 }
6693
6694 //KnownServerKey::PluginSpecific
6695 auto& p = key->specificData.add();
6696 p.first = plugin;
6697 memcpy(p.second.getBuffer(length), data, length);
6698}
6699
6700
6701void set_server(rem_port* port, USHORT flags)

Callers 2

addServerKeysMethod · 0.45
extractNewKeysMethod · 0.45

Calls 3

getCountMethod · 0.45
addMethod · 0.45
getBufferMethod · 0.45

Tested by

no test coverage detected