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

Function ZeroPadding

cpp/src/arrow/buffer.h:149–157  ·  view source on GitHub ↗

Zero bytes in padding, i.e. bytes between size_ and capacity_.

Source from the content-addressed store, hash-verified

147
148 /// Zero bytes in padding, i.e. bytes between size_ and capacity_.
149 void ZeroPadding() {
150#ifndef NDEBUG
151 CheckMutable();
152#endif
153 // A zero-capacity buffer can have a null data pointer
154 if (capacity_ != 0) {
155 memset(mutable_data() + size_, 0, static_cast<size_t>(capacity_ - size_));
156 }
157 }
158
159 /// \brief Construct a buffer that takes ownership of a container.
160 ///

Callers

nothing calls this directly

Calls 1

mutable_dataFunction · 0.70

Tested by

no test coverage detected