> Many functions that operate on strings also accept buffer objects as > parameters, > this seems also be the case for the base64.encodestring function. ctypes > objects > support the buffer interface. > > So, base64.b64encode(buffer(ctypes_instance)) should work efficiently.
Thanks! I have never used (or even heard of) the buffer objects. I'll check it out. Russ -- http://mail.python.org/mailman/listinfo/python-list