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

Method BufferReadOnly

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

Source from the content-addressed store, hash-verified

350 struct BufferReadOnly {
351 const uint8_t value = 0;
352 explicit BufferReadOnly(uint8_t value) : value(value) {}
353
354 py::buffer_info get_buffer_info() { return py::buffer_info(&value, 1); }
355 };

Callers 1

test_readonly_bufferFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected