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

Method UnsafePutByteArray

cpp/src/parquet/encoder.cc:164–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 void UnsafePutByteArray(const void* data, uint32_t length) {
165 DCHECK(length == 0 || data != nullptr) << "Value ptr cannot be NULL";
166 sink_.UnsafeAppend(&length, sizeof(uint32_t));
167 sink_.UnsafeAppend(data, static_cast<int64_t>(length));
168 unencoded_byte_array_data_bytes_ += length;
169 }
170
171 void Put(const ByteArray& val) {
172 // Write the result to the output stream

Callers

nothing calls this directly

Calls 1

UnsafeAppendMethod · 0.45

Tested by

no test coverage detected