(self)
Generates string representation of self as a ctypes function argument.
Generates string representation of self as a ctypes function argument.
Generates string representation of self as a ctypes function argument .
def arg(self):
    """Generates string representation of self as a ctypes function argument."""
    # we assume that every pointer that maps to a numpy dtype corresponds to an
    # array argument/return value
    if self.ctypes_typename in header_parsing.CTYPES_TO_NUMPY:
      return ("util.ndptr(dtype={0.np_dtype}, flags={0.np_flags!s})"
              .format(self))  # pylint: disable=missing-format-attribute
    else:
      return self.ctypes_ptr
def arg ( self ) : # we assume that every pointer that maps to a numpy dtype corresponds to an # array argument/return value if self . ctypes_typename in header_parsing . CTYPES_TO_NUMPY : return ( "util.ndptr(dtype={0.np_dtype}, flags={0.np_flags!s})" . format ( self ) ) # pylint: disable=missing-format-attribute else : return self . ctypes_ptr