MCPcopy Create free account
hub / github.com/davisking/dlib / nbytes

Method nbytes

dlib/external/pybind11/include/pybind11/numpy.h:586–586  ·  view source on GitHub ↗

Returns the total number of bytes used by the referenced data. Note that the actual span in memory may be larger if the referenced array has non-contiguous strides (e.g. for a slice).

Source from the content-addressed store, hash-verified

584 /// in memory may be larger if the referenced array has non-contiguous strides (e.g. for a
585 /// slice).
586 ssize_t nbytes() const { return size() * itemsize(); }
587};
588
589template <typename T, ssize_t Dims>

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.85
itemsizeFunction · 0.85

Tested by

no test coverage detected