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

Method get_buffer_info

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

Source from the content-addressed store, hash-verified

313 int32_t value = 0;
314
315 py::buffer_info get_buffer_info() {
316 return py::buffer_info(
317 &value, sizeof(value), py::format_descriptor<int32_t>::format(), 1);
318 }
319 };
320 py::class_<Buffer>(m, "Buffer", py::buffer_protocol())
321 .def(py::init<>())

Callers 3

test_ctypes_array_1dFunction · 0.45
test_ctypes_array_2dFunction · 0.45
test_ctypes_from_bufferFunction · 0.45

Calls 1

buffer_infoClass · 0.85

Tested by

no test coverage detected