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).

Thanks!
Vsevolod

On Sat, Aug 7, 2010 at 9:11 AM, Luís Oliveira <luismbo@gmail.com> wrote:
On Fri, Aug 6, 2010 at 12:58 PM, Vsevolod Dyomkin <vseloved@gmail.com> wrote:
> I've prepared a patch to CFFI, that can handle this situation (additional
> TRANSLATE- method for string blobs of known size) and will soon send it, if
> I no better solution will be found.

Cool. I think you can support that through a :size argument for the :string
type. Let me know if you need help implementing such a thing.

--
Luís Oliveira
http://r42.eu/~luis/