A Java array of primitive type.
Bounding index designators for array.
An FLI pointer.
A non-negative integer.
buffer, if supplied, must be a foreign pointer pointing to a suitable buffer, which means large enough to receive the data in
get-primitive-array-region, or containing the desired data in
buffer-size is used only when buffer is also supplied. buffer-size specifies the number of bytes to copy into buffer. If copying the required number of elements requires more bytes,
get-primitive-array-region signals an error. Note that buffer-size is specified in bytes, while start and end are specified in elements.
If buffer is not supplied to
get-primitive-array-region it creates a buffer of the correct size using
fli:allocate-foreign-object. In this case you will need to free the buffer using
fli:free-foreign-object when the program has finished with it.
get-primitive-array-region copies the required number of elements into the buffer, and returns two values: the target buffer (either the buffer argument or the new buffer) and the foreign-type corresponding to the Java primitive type (one of jbyte, jshort. jint. jlong, jfloat, jdouble, jboolean and jchar).
LispWorks User Guide and Reference Manual - 13 Feb 2015