MCPcopy Create free account
hub / github.com/apache/impala / shift

Method shift

be/src/transport/THttpTransport.cpp:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void THttpTransport::shift() {
199 if (httpBufLen_ > httpPos_) {
200 // Shift down remaining data and read more
201 uint32_t length = httpBufLen_ - httpPos_;
202 memmove(httpBuf_, httpBuf_ + httpPos_, length);
203 httpBufLen_ = length;
204 } else {
205 httpBufLen_ = 0;
206 }
207 httpPos_ = 0;
208 httpBuf_[httpBufLen_] = '\0';
209}
210
211void THttpTransport::refill() {
212 uint32_t avail = httpBufSize_ - httpBufLen_;

Callers 15

jtFunction · 0.80
Chart-2.9.4.min.jsFile · 0.80
BcFunction · 0.80
bFunction · 0.80
rFunction · 0.80
lFunction · 0.80
hFunction · 0.80
zeFunction · 0.80
JiFunction · 0.80
boFunction · 0.80
woFunction · 0.80
SoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected