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

Method owndata

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

If set, the array owns the data (will be freed when the array is deleted)

Source from the content-addressed store, hash-verified

1190
1191 /// If set, the array owns the data (will be freed when the array is deleted)
1192 bool owndata() const {
1193 return detail::check_flags(m_ptr, detail::npy_api::NPY_ARRAY_OWNDATA_);
1194 }
1195
1196 /// Pointer to the contained data. If index is not provided, points to the
1197 /// beginning of the buffer. May throw if the index would lead to out of bounds access.

Callers

nothing calls this directly

Calls 1

check_flagsFunction · 0.85

Tested by

no test coverage detected