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

Method SkipBytes

be/src/exec/read-write-util.h:300–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300inline bool ReadWriteUtil::SkipBytes(uint8_t** buf, int* buf_len, int num_bytes,
301 Status* status) {
302 DCHECK_GE(*buf_len, 0);
303 if (UNLIKELY(num_bytes > *buf_len)) {
304 std::stringstream ss;
305 ss << "Cannot skip " << num_bytes << " bytes, buffer length is " << *buf_len;
306 *status = Status(ss.str());
307 return false;
308 }
309 *buf += num_bytes;
310 *buf_len -= num_bytes;
311 return true;
312}
313
314inline bool ReadWriteUtil::IsNegativeVInt(int8_t byte) {
315 return byte < -120 || (byte >= -112 && byte < 0);

Callers 8

OpenMethod · 0.45
SkipToSyncMethod · 0.45
DecompressStreamMethod · 0.45
GetRecordMethod · 0.45
ReadColumnBuffersMethod · 0.45
AdvanceStreamMethod · 0.45
readMethod · 0.45
ReadFooterStreamMethod · 0.45

Calls 2

StatusClass · 0.70
strMethod · 0.45

Tested by

no test coverage detected