return a shadow copy, optionnaly only copy 'size' bytes
(self, size=-1)
| 72 | return data |
| 73 | |
| 74 | def copy(self, size=-1): |
| 75 | """ |
| 76 | return a shadow copy, optionnaly only copy 'size' bytes |
| 77 | """ |
| 78 | if size == -1 or size > self._size: |
| 79 | size = self._size |
| 80 | return Buffer(self._data, self._cur_pos, size) |
| 81 | |
| 82 | def skip(self, size): |
| 83 | """ |
no test coverage detected