Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/coremltools
/ BufferReadOnly
Method
BufferReadOnly
deps/pybind11/tests/test_buffers.cpp:221–221 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
219
struct BufferReadOnly {
220
const uint8_t value = 0;
221
explicit BufferReadOnly(uint8_t value) : value(value) {}
222
223
py::buffer_info get_buffer_info() { return py::buffer_info(&value, 1); }
224
};
Callers
1
test_readonly_buffer
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected