(self, size:int, dtype:DType, offset:int)
| 215 | self.allocator._copyout(mv, self._buf) |
| 216 | return mv |
| 217 | def view(self, size:int, dtype:DType, offset:int) -> Buffer: |
| 218 | assert offset < self.nbytes, "offset must be less than nbytes" |
| 219 | return Buffer(self.device, size, dtype, base=self.base, offset=self.offset+offset) |
| 220 | |
| 221 | DeviceType = TypeVar('DeviceType', bound='Compiled') |
| 222 |