The function encode-lisp-string
converts the part of string bounded by start and end to a binary vector vector encoded in encoding external-format.
The element type of vector matches the external-format-foreign-type of external-format.
This function exists in LispWorks 5.0 but is not documented and does not take the :start
and :end
arguments. Also, it was inefficient prior to LispWorks 5.0.1.
LispWorks User Guide and Reference Manual - 20 Sep 2017