MCPcopy Create free account
hub / github.com/activeloopai/deeplake / holder

Method holder

cpp/nd/array.hpp:794–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792 }
793
794 inline holder_* holder() noexcept
795 {
796 switch (mode_) {
797 case mode_t::null:
798 case mode_t::scalar_inplace:
799 return nullptr;
800 case mode_t::holder_inplace:
801 return reinterpret_cast<holder_*>(data_.get_raw());
802 case mode_t::holder_pointer:
803 return data_.get_allocated()->get();
804 }
805 return nullptr;
806 }
807
808 inline const holder_* holder() const
809 {

Callers 2

arrayMethod · 0.45
arrayClass · 0.45

Calls 3

get_rawMethod · 0.80
get_allocatedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected