INNER CODE UNIT · Python

_check_C_compatible

rpy2/rpy2 · rpy2-rinterface/src/rpy2/rinterface/__init__.py:422

    def _check_C_compatible(cls, mview):
        return (
            mview.itemsize == cls._R_SIZEOF_ELT
            and
            (
                cls._NP_TYPESTR == '|u1'
                or
                cls._NP_TYPESTR.endswith(mview.format)
            )
        )


class ByteSexpVector(SexpVectorWithNumpyInterface):
    """Array of bytes.

    This is the R equivalent to a Python :class:`bytesarray`.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…