MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / itemsize

Method itemsize

libs/pybind/pybind11/numpy.h:762–764  ·  view source on GitHub ↗

Byte size of a single element

Source from the content-addressed store, hash-verified

760
761 /// Byte size of a single element
762 ssize_t itemsize() const {
763 return detail::array_descriptor_proxy(detail::array_proxy(m_ptr)->descr)->elsize;
764 }
765
766 /// Total number of bytes
767 ssize_t nbytes() const { return size() * itemsize(); }

Callers

nothing calls this directly

Calls 2

array_descriptor_proxyFunction · 0.85
array_proxyFunction · 0.85

Tested by

no test coverage detected