def cio_open(cinfo, src=None):
argtypes = [ctypes.POINTER(CommonStructType), ctypes.c_char_p,<EOL>ctypes.c_int]<EOL>OPENJPEG.opj_cio_open.argtypes = argtypes<EOL>OPENJPEG.opj_cio_open.restype = ctypes.POINTER(CioType)<EOL>if src is None:<EOL><INDENT>length = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>length = len(src)<EOL><DEDENT>cio = OPENJPEG.opj_cio_open(ctypes.cast(cinfo,<EOL>ctypes.POINTER(CommonStructType)),<EOL>src,<EOL>length)<EOL>return cio<EOL>
Wrapper for openjpeg library function opj_cio_open.