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

Method get

extra/yassl/taocrypt/src/file.cpp:71–83  ·  view source on GitHub ↗

fill file source from source

Source from the content-addressed store, hash-verified

69
70// fill file source from source
71word32 FileSource::get(Source& source)
72{
73 word32 sz(size());
74 if (source.size() < sz)
75 source.grow(sz);
76
77 size_t bytes = fread(source.buffer_.get_buffer(), 1, sz, file_);
78
79 if (bytes == 1)
80 return sz;
81 else
82 return 0;
83}
84
85
86FileSink::FileSink(const char* fname, Source& source)

Callers 15

AddToEndMethod · 0.45
DoProcessReplyFunction · 0.45
sendClientKeyExchangeFunction · 0.45
sendServerKeyExchangeFunction · 0.45
sendChangeCipherFunction · 0.45
sendFinishedFunction · 0.45
sendServerHelloFunction · 0.45
sendServerHelloDoneFunction · 0.45
sendCertificateFunction · 0.45
sendCertificateRequestFunction · 0.45
sendCertificateVerifyFunction · 0.45
yassl_imp.cppFile · 0.45

Calls 3

growMethod · 0.80
sizeMethod · 0.45
get_bufferMethod · 0.45

Tested by

no test coverage detected