Dear all,
as you might remember my post several days ago regarding the memory
access with the python bindings ... and the NULL bytes ;)
well, i digged a bit in the wonderful(tm) swig sources, but instead of
trying to fix it and getting my hands even dirtier - i assume the whole
swig api would need a change to fix this, as strings with NULL bytes
maybe are not so common in lets say, perl also ?!?!
well, i wrote an entirely new wrapper using ctypes for libowcapi - its
only a couple lines of code, and very clear what it does ... but not api
compatible with the current python bindings ... as they have some flaws
anyway ... ;)
it's tested under ubuntu 9.10 talking to an owserver running on a gentoo
box :)
... and it can read my 128 bytes of raw binary data with NULL bytes ;)
hey, if anyone is interested in this, i will want to put it on the
python package index - currently it can be reached in his home on:
http://priesch.co.at/pyowfs
... there is also a brief usage example of pyowfs there ...
feel free to send me comments !!!
regards,
marcus
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers