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

Function init

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

Source from the content-addressed store, hash-verified

294#endif
295
296 void init(VALUE mArrow) {
297#ifdef HAVE_MEMORY_VIEW
298 auto cPrimitiveArray =
299 rb_const_get_at(mArrow, rb_intern("PrimitiveArray"));
300 rb_memory_view_register(cPrimitiveArray,
301 &(red_arrow::memory_view::primitive_array_entry));
302
303 auto cBuffer = rb_const_get_at(mArrow, rb_intern("Buffer"));
304 rb_memory_view_register(cBuffer, &(red_arrow::memory_view::buffer_entry));
305#endif
306 }
307 }
308}

Callers 1

Init_arrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected