with-foreign-pointer

with-foreign-pointer

Syntax

Macro: with-foreign-pointer(var size &optional size-var) &body body

Arguments and Values

var

size-var

A symbol.

size

An integer.

body

A list of forms to be executed.

Description

The with-foreign-pointer macro, binds var to size
bytes of foreign memory during body. The pointer in var
is invalid beyond the dynamic extend of body and may be
stack-allocated if supported by the implementation.