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","."]
code: def __init__(self, data=None):
      self._size = (
          0  # number of elements in buffer, set in resize_bytes()
      )
      self._dtype = None
      self._stride = 0
      self._itemsize = 0
      self._last_dim = None
      Buffer.__init__(self, data)
  
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 1 to create a new DataBuffer object from inherited base classes: Buffer with example: obj = DataBuffer(data)