MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / AddToEnd

Method AddToEnd

extra/yassl/taocrypt/src/asn.cpp:215–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214
215void PublicKey::AddToEnd(const byte* data, word32 len)
216{
217 mySTL::auto_array<byte> tmp(NEW_TC byte[sz_ + len]);
218
219 memcpy(tmp.get(), key_, sz_);
220 memcpy(tmp.get() + sz_, data, len);
221
222 byte* del = 0;
223 STL::swap(del, key_);
224 tcArrayDelete(del);
225
226 key_ = tmp.release();
227 sz_ += len;
228}
229
230
231Signer::Signer(const byte* k, word32 kSz, const char* n, const byte* h)

Callers 1

AddDSAMethod · 0.80

Calls 4

tcArrayDeleteFunction · 0.85
swapFunction · 0.50
getMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected