Actually, the string type doesn't have such a slot now (and that was kind of what I thought to add).<br>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).<br>
<br>Thanks!<br>Vsevolod<br><br><div class="gmail_quote">On Sat, Aug 7, 2010 at 9:11 AM, Luís Oliveira <span dir="ltr"><<a href="mailto:luismbo@gmail.com" target="_blank">luismbo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Fri, Aug 6, 2010 at 12:58 PM, Vsevolod Dyomkin <<a href="mailto:vseloved@gmail.com" target="_blank">vseloved@gmail.com</a>> wrote:<br>
> I've prepared a patch to CFFI, that can handle this situation (additional<br>
> TRANSLATE- method for string blobs of known size) and will soon send it, if<br>
> I no better solution will be found.<br>
<br>
</div>Cool. I think you can support that through a :size argument for the :string<br>
type. Let me know if you need help implementing such a thing.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div>Luís Oliveira<br>
<a href="http://r42.eu/%7Eluis/" target="_blank">http://r42.eu/~luis/</a><br>
</div></div></blockquote></div><br>