MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / bufferInfo

Function bufferInfo

src/python/PyImath/PyImathBufferProtocol.cpp:159–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158template <class ArrayT>
159Py_ssize_t
160bufferInfo (ArrayT &array, void **buf)
161{
162 *buf = static_cast<void *> (&array.direct_index(0));
163 return array.len() * sizeof(typename ArrayT::BaseType);
164}
165
166
167template <class ArrayT>

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected