(self)
| 12 | self.buf_unalloc = Buffer(Device.DEFAULT, 10, dtypes.uint8) |
| 13 | |
| 14 | def test_subbuffer(self): |
| 15 | vbuf = self.buf.view(2, dtypes.uint8, offset=3).ensure_allocated() |
| 16 | tst = vbuf.as_memoryview().tolist() |
| 17 | assert tst == [3, 4] |
| 18 | |
| 19 | def test_subbuffer_cast(self): |
| 20 | # NOTE: bitcast depends on endianness |
nothing calls this directly
no test coverage detected