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

Method read

extra/yassl/src/buffer.cpp:223–231  ·  view source on GitHub ↗

use read to query input, adjusts current

Source from the content-addressed store, hash-verified

221
222// use read to query input, adjusts current
223void input_buffer::read(byte* dst, uint length)
224{
225 if (dst && error_ == 0 && check(current_ + length - 1, size_) == 0) {
226 memcpy(dst, &buffer_[current_], length);
227 current_ += length;
228 } else {
229 error_ = -1;
230 }
231}
232
233
234

Callers 3

ProcessOldClientHelloFunction · 0.45
fillDataMethod · 0.45
PeekDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected