![](https://secure.gravatar.com/avatar/326b108ffcc42f27628703b0c11ed239.jpg?s=120&d=mm&r=g)
7 Aug
2010
7 Aug
'10
6:35 a.m.
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, -- Luís Oliveira http://r42.eu/~luis/