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 Fri, Aug 6, 2010 at 12:58 PM, Vsevolod Dyomkin <vseloved@gmail.com> wrote:Cool. I think you can support that through a :size argument for the :string
> 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.
type. Let me know if you need help implementing such a thing.
--