Converts a string to an encoded binary vector.
external-format
encode-lisp-string string external-format &key start end => vector
| string⇩ | 
A string. | 
| external-format⇩ | 
An external format spec. | 
| 
Bounding index designators of string. | 
| vector⇩ | 
A binary vector. | 
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.
26.6 External Formats to translate Lisp characters from/to external encodings
decode-external-string
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:34