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

Method GetNextBytePtr

be/src/kudu/util/bit-stream-utils.inline.h:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65inline uint8_t* BitWriter::GetNextBytePtr(int num_bytes) {
66 Flush(/* align */ true);
67 buffer_->reserve(KUDU_ALIGN_UP(byte_offset_ + num_bytes, 8));
68 buffer_->resize(byte_offset_ + num_bytes);
69 uint8_t* ptr = buffer_->data() + byte_offset_;
70 byte_offset_ += num_bytes;
71 DCHECK_LE(byte_offset_, buffer_->capacity());
72 return ptr;
73}
74
75template<typename T>
76inline void BitWriter::PutAligned(T val, int num_bytes) {

Callers

nothing calls this directly

Calls 4

reserveMethod · 0.80
resizeMethod · 0.80
dataMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected