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

Method fill

ruby/red-arrow/ext/arrow/memory-view.cpp:206–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205 private:
206 void fill(const arrow::Array& array) {
207 const auto array_data = array.data();
208 const auto data = array_data->GetValuesSafe<uint8_t>(1);
209 view_->data = const_cast<void *>(reinterpret_cast<const void *>(data));
210 const auto type =
211 std::static_pointer_cast<const arrow::FixedWidthType>(array.type());
212 view_->item_size = type->bit_width() / 8;
213 view_->byte_size = view_->item_size * array.length();
214 }
215
216 memory_view *view_;
217 };

Callers 7

basic_decimal.ccFile · 0.80
VisitWordsFunction · 0.80
SafeLoadWordsFunction · 0.80
TYPED_TESTFunction · 0.80
valueMethod · 0.80

Calls 4

dataMethod · 0.45
typeMethod · 0.45
bit_widthMethod · 0.45
lengthMethod · 0.45

Tested by 2

TYPED_TESTFunction · 0.64