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

Method GetNextBytePtr

cpp/src/arrow/util/bit_stream_utils_internal.h:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240inline uint8_t* BitWriter::GetNextBytePtr(int num_bytes) {
241 Flush(/* align */ true);
242 ARROW_DCHECK_LE(byte_offset_, max_bytes_);
243 if (byte_offset_ + num_bytes > max_bytes_) return NULL;
244 uint8_t* ptr = buffer_ + byte_offset_;
245 byte_offset_ += num_bytes;
246 return ptr;
247}
248
249template <typename T>
250inline bool BitWriter::PutAligned(T val, int num_bytes) {

Callers 2

FlushLiteralRunMethod · 0.80
FlushBlockMethod · 0.80

Calls 1

FlushFunction · 0.85

Tested by

no test coverage detected