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

Function ato16

extra/yassl/src/yassl_int.cpp:115–119  ·  view source on GitHub ↗

convert opaque to 16 bit integer

Source from the content-addressed store, hash-verified

113
114// convert opaque to 16 bit integer
115void ato16(const opaque* c, uint16& u16)
116{
117 u16 = 0;
118 u16 = (c[0] << 8) | (c[1]);
119}
120
121
122// convert (copy) opaque to 24 bit integer

Callers 4

ProcessOldClientHelloFunction · 0.85
readMethod · 0.85
yassl_imp.cppFile · 0.85
DeCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected