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

Method get_buffer_info

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

Source from the content-addressed store, hash-verified

352 explicit BufferReadOnly(uint8_t value) : value(value) {}
353
354 py::buffer_info get_buffer_info() { return py::buffer_info(&value, 1); }
355 };
356 py::class_<BufferReadOnly>(m, "BufferReadOnly", py::buffer_protocol())
357 .def(py::init<uint8_t>())

Callers

nothing calls this directly

Calls 1

buffer_infoClass · 0.85

Tested by

no test coverage detected