def resize_bytes(self, size):
    ' Resize the buffer (in-place, deferred operation)\n\n        Parameters\n        ----------\n        size : integer\n            New buffer size in bytes\n\n        Notes\n        -----\n        This clears any pending operations.\n        '
    Buffer.resize_bytes(self, size)
    self._size = (size // self.itemsize)
Resize the buffer (in-place, deferred operation)

Parameters
----------
size : integer
    New buffer size in bytes

Notes
-----
This clears any pending operations.
def resize_bytes(self, size):
    ' Resize the buffer (in-place, deferred operation)\n\n        Parameters\n        ----------\n        size : integer\n            New buffer size in bytes\n\n        Notes\n        -----\n        This clears any pending operations.\n        '
    Buffer.resize_bytes(self, size)
    self._size = (size // self.itemsize)