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

Method AppendNulls

cpp/src/arrow/array/builder_primitive.h:112–117  ·  view source on GitHub ↗

Write nulls as uint8_t* (0 value indicates null) into pre-allocated memory The memory at the corresponding data slot is set to 0 to prevent uninitialized memory access

Source from the content-addressed store, hash-verified

110 /// The memory at the corresponding data slot is set to 0 to prevent
111 /// uninitialized memory access
112 Status AppendNulls(int64_t length) final {
113 ARROW_RETURN_NOT_OK(Reserve(length));
114 data_builder_.UnsafeAppend(length, value_type{}); // zero
115 UnsafeSetNull(length);
116 return Status::OK();
117 }
118
119 /// \brief Append a single null element
120 Status AppendNull() final {

Callers

nothing calls this directly

Calls 3

ReserveFunction · 0.70
OKFunction · 0.50
UnsafeAppendMethod · 0.45

Tested by

no test coverage detected