Re: ctypes initializer

2008-08-24 Thread castironpi
On Aug 23, 7:11 pm, castironpi [EMAIL PROTECTED] wrote: On Aug 23, 6:43 pm, [EMAIL PROTECTED] wrote: castironpi napisa³(a): Is there a way to initialize a ctypes Structure to point to an offset into a buffer? I don't know if the way I'm doing it is supported. There is a high

ctypes initializer

2008-08-23 Thread castironpi
Is there a way to initialize a ctypes Structure to point to an offset into a buffer? I don't know if the way I'm doing it is supported. -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes initializer

2008-08-23 Thread marek . rocki
castironpi napisał(a): Is there a way to initialize a ctypes Structure to point to an offset into a buffer? I don't know if the way I'm doing it is supported. There is a high probability you're abusing ctypes too much, but it's possible. The following seems to work: from ctypes import * class

Re: ctypes initializer

2008-08-23 Thread castironpi
On Aug 23, 6:43 pm, [EMAIL PROTECTED] wrote: castironpi napisa³(a): Is there a way to initialize a ctypes Structure to point to an offset into a buffer? I don't know if the way I'm doing it is supported. There is a high probability you're abusing ctypes too much, but it's possible. The