Scieneer Common Lisp 1.3.9 online documentation

ext:iconv-to-natural iconv-desc buffer-sap head available output-sap start requested[Function]

Convert the foreign characters stored in foreign storage pointed to by buffer-sap, starting at offset head and using at most the available bytes, directly into a foreign string in the native lisp character format stored in foreign storage pointed to by output-sap at offset start and for up to the requested number of characters. The character conversion is determined by the iconv-desc. The number of bytes consumed and the number of characters written are returned. The conversion stops at the first conversion error, and the error will be signaled if it occurs at the first byte otherwise a partial conversion is returned.