On Sat, Aug 7, 2010 at 7:23 AM, Vsevolod Dyomkin vseloved@gmail.com wrote:
Actually, the string type doesn't have such a slot now (and that was kind of what I thought to add). But the more simple solution (not involving the need to patch CFFI) was just to use (foreign-string-to-lisp data :count size), which is also used internally by translate-from-foreign (but without the count parameter).
Sorry I wasn't clear. What I meant is that you could add such a slot, then use it in translate-from-foreign to feed foreign-string-to-lisp's count parameter.
Cheers,