MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_buffer_info

Method get_buffer_info

tests/test_buffers.cpp:332–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 void set_value(int32_t v) { *value = v; }
331
332 py::buffer_info get_buffer_info() const {
333 return py::buffer_info(
334 value.get(), sizeof(*value), py::format_descriptor<int32_t>::format(), 1);
335 }
336
337 ConstBuffer() : value(new int32_t{0}) {}
338 };

Callers

nothing calls this directly

Calls 2

buffer_infoClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected