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

Method size

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

return size of source from beginning or current position

Source from the content-addressed store, hash-verified

43
44// return size of source from beginning or current position
45word32 FileSource::size(bool use_current)
46{
47 long current = ftell(file_);
48 long begin = current;
49
50 if (!use_current) {
51 fseek(file_, 0, SEEK_SET);
52 begin = ftell(file_);
53 }
54
55 fseek(file_, 0, SEEK_END);
56 long end = ftell(file_);
57
58 fseek(file_, current, SEEK_SET);
59
60 return end - begin;
61}
62
63
64word32 FileSource::size_left()

Callers 15

bench_rsaFunction · 0.45
bench_dhFunction · 0.45
bench_dsaFunction · 0.45
rsa_testFunction · 0.45
dh_testFunction · 0.45
dsa_testFunction · 0.45
AS2Function · 0.45
AddMethod · 0.45
ConvertOutMethod · 0.45
ValidateSelfSignatureMethod · 0.45
ValidateSignatureMethod · 0.45

Calls

no outgoing calls

Tested by 3

rsa_testFunction · 0.36
dh_testFunction · 0.36
dsa_testFunction · 0.36