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

Method GetNextBytePtr

be/src/util/bit-stream-utils.inline.h:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71inline uint8_t* BitWriter::GetNextBytePtr(int num_bytes) {
72 Flush(/* align */ true);
73 DCHECK_LE(byte_offset_, max_bytes_);
74 if (byte_offset_ + num_bytes > max_bytes_) return NULL;
75 uint8_t* ptr = buffer_ + byte_offset_;
76 byte_offset_ += num_bytes;
77 return ptr;
78}
79
80template<typename T>
81inline bool BitWriter::PutAligned(T val, int num_bytes) {

Callers 4

WriteHeaderMethod · 0.45
WriteMinDeltaMethod · 0.45
WriteMiniblocksMethod · 0.45
FlushLiteralRunMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected