Python论坛  - 讨论区

标题:[python-chinese] ctypes问题

2007年04月14日 星期六 16:46

jessinio smith jessinio在gmail.com
星期六 四月 14 16:46:19 HKT 2007

  *POINTER*(
type) This factory function creates and returns a new ctypes pointer type.
Pointer types are cached an reused internally, so calling this function
repeatedly is cheap. type must be a ctypes type.

   *pointer*( obj) This function creates a new pointer instance, pointing to
obj. The returned object is of the type POINTER(type(obj)).

Note: If you just want to pass a pointer to an object to a foreign function
call, you should use byref(obj) which is much faster.
ÉÏÃæÁ½¶¼ÓÐʲô²»Í¬£¿£¿£¿

-- 
×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070414/9f7a0317/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号