class_docstr: GPU data buffer that is aware of data type and elements size
  
  Parameters
  ----------
  data : ndarray | None
      Buffer data.
class_docstr_tok: ["GPU","data","buffer","that","is","aware","of","data","type","and","elements","size","Parameters","--","--","--","--","--","data",":","ndarray","|","None","Buffer","data","."]
docstr: Resize the buffer (in-place, deferred operation)
  
  Parameters
  ----------
  size : integer
      New buffer size in bytes
  
  Notes
  -----
  This clears any pending operations.
code: def resize_bytes(self, size):
      """Resize the buffer (in-place, deferred operation)
  
      Parameters
      ----------
      size : integer
          New buffer size in bytes
  
      Notes
      -----
      This clears any pending operations.
      """
      Buffer.resize_bytes(self, size)
      self._size = size // self.itemsize
  
imports: import numpy
  from os import path
  from traceback import extract_stack, format_list
  import weakref
  from .globject import GLObject
  from ..util import logger
label_desc: Use image node_id 11 for calling the DataBuffer obj's underlying member method code with example usage: obj.resize_bytes(size) without return types