A Java array of primitive type.
Bounding index designators.
A Lisp array of an acceptable type, or
A Lisp array of an acceptable type.
A Java array of primitive type, or
primitive-array-to-lisp-array takes a Java array p-array of primitive type and copies elements from it to a Lisp array of matching type. The target lisp-array is created by default, but can also be supplied as an argument.
lisp-array-to-primitive-array takes a Lisp array l-array of an acceptable Lisp type and copies elements from it to a Java array of matching type. The target primitive-array is created by default, but can also be supplied as an argument.
target-start and target-end are used only if the target is supplied (by lisp-array or primitive-array). They specify the start and end for copying in the target. The actual number of elements copied is the minimum of the lengths specified for the source and for the target.
The Lisp array that is passed to
lisp-array-to-primitive-array must be of one of the types listed below, and when the target array is supplied, its type must match the type of the source array according to the table below, except that
cl:base-char array (
cl:simple-base-string) is acceptable when the Java side is
For a large number of elements, these functions are much faster than jvref. If the primitive data is needed for passing to or from foreign functions, use get-primitive-array-region and set-primitive-array-region instead. These functions work only on arrays with one dimension with primitive element type. For non-primitive arrays of one dimension you can use map-java-object-array.
LispWorks User Guide and Reference Manual - 13 Feb 2015