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

Method get_buffer_info

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

Source from the content-addressed store, hash-verified

362 bool readonly = false;
363
364 py::buffer_info get_buffer_info() { return py::buffer_info(&value, 1, readonly); }
365 };
366 py::class_<BufferReadOnlySelect>(m, "BufferReadOnlySelect", py::buffer_protocol())
367 .def(py::init<>())

Callers

nothing calls this directly

Calls 1

buffer_infoClass · 0.85

Tested by

no test coverage detected