[Cffi-devel] clear foreign memory
Hello, Lets say I want to keep around blocks of foreign memory but I need to clear them before I reuse them what would be the best way to do it? In C we could use memset() is there such an equivalent for CFFI? Thanks, Frank
Well I guess I can just defcfun memset() which is likely available at load time in any lisp anyways... On Sun, 2014-11-23 at 18:13 -0700, FAU wrote:
Hello,
Lets say I want to keep around blocks of foreign memory but I need to clear them before I reuse them what would be the best way to do it?
In C we could use memset() is there such an equivalent for CFFI?
Thanks, Frank
_______________________________________________ Cffi-devel mailing list Cffi-devel@common-lisp.net http://mailman.common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel
Thanks, I missed that one. I actually just started to use static-vectors in my project :) On Mon, 2014-11-24 at 11:19 +0100, Stelian Ionescu wrote:
On Sun, 2014-11-23 at 20:40 -0700, FAU wrote:
Well I guess I can just defcfun memset() which is likely available at load time in any lisp anyways...
You can also use static-vectors:fill-foreign-memory
participants (3)
-
FAU
-
Luís Oliveira
-
Stelian Ionescu