(self)
| 17 | assert tst == [3, 4] |
| 18 | |
| 19 | def test_subbuffer_cast(self): |
| 20 | # NOTE: bitcast depends on endianness |
| 21 | vbuf = self.buf.view(2, dtypes.uint16, offset=3).ensure_allocated() |
| 22 | tst = vbuf.as_memoryview().cast("H").tolist() |
| 23 | assert tst == [3|(4<<8), 5|(6<<8)] |
| 24 | |
| 25 | def test_subbuffer_double(self): |
| 26 | vbuf = self.buf.view(4, dtypes.uint8, offset=3).ensure_allocated() |
nothing calls this directly
no test coverage detected