Function
with-dynamic-foreign-objects
command. fli
convert-to-dynamic-foreign-string string &key external-format null-terminated-p => pointer length
A Lisp string.
A keyword specifying the format to be used for the foreign string.
Ift
, the foreign string terminates with a null character. The default value ist
.
An FLI pointer to the foreign string.
The length of the string (including the terminating null character if there is one).
convert-to-dynamic-foreign-string
converts a Lisp string to a foreign string, and returns a pointer to the string and the length of the string. The memory allocation for the string and pointer is within the scope of the body of awith-dynamic-foreign-objects
command. char*
. For Unicode encoded strings, specify:unicode
. If you want to pass a string to the Win32 API, known asSTR
in the Win32 API terminology, specify *multibyte-code-page-ef*
, which is a variable holding the external format corresponding to the current Windows multi-byte code page. t
. allocate-dynamic-foreign-object
convert-from-foreign-string
with-dynamic-foreign-objects
with-foreign-string