class_docstr: Like _ndptr, but with `_shape_` and `_dtype_` specified.
  
  Notably, this means the pointer has enough information to reconstruct
  the array, which is not generally true.
class_docstr_tok: ["Like","_ndptr",",","but","with","`","_shape_","`","and","`","_dtype_","`","specified",".","Notably",",","this","means","the","pointer","has","enough","information","to","reconstruct","the","array",",","which","is","not","generally","true","."]
docstr: Get an ndarray viewing the data pointed to by this pointer.
  
  This mirrors the `contents` attribute of a normal ctypes pointer
docstr_tok: ["Get","an","ndarray","viewing","the","data","pointed","to","by","this","pointer",".","This","mirrors","the","`","contents","`","attribute","of","a","normal","ctypes","pointer"]
code: def contents(self):
      """
      Get an ndarray viewing the data pointed to by this pointer.
  
      This mirrors the `contents` attribute of a normal ctypes pointer
      """
      full_dtype = _dtype((self._dtype_, self._shape_))
      full_ctype = ctypes.c_char * full_dtype.itemsize
      buffer = ctypes.cast(self, ctypes.POINTER(full_ctype)).contents
      return frombuffer(buffer, dtype=full_dtype).squeeze(axis=0)
  
file_path: catboost/contrib/python/numpy/py3/numpy/ctypeslib.py
imports: import os
  from numpy import integer, ndarray, dtype, asarray, frombuffer
  from numpy.core.multiarray import _flagdict, flagsobj
label_desc: Use image node_id 2 for calling the _concrete_ndptr obj's underlying member method code with example usage: obj.contents() and returns: frombuffer