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

Method byte_2_value

cpp/nd/array.hpp:342–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340 }
341
342 inline byte_t<2> byte_2_value(int64_t index) const
343 {
344 if (mode_ == mode_t::scalar_inplace) {
345 ASSERT(index == 0);
346 return base::span_cast<const byte_t<2>>(data())[index];
347 }
348 return holder()->byte_2_value(index);
349 }
350
351 inline byte_t<4> byte_4_value(int64_t index) const
352 {

Callers

nothing calls this directly

Calls 2

holderClass · 0.70
dataFunction · 0.50

Tested by

no test coverage detected