.  *  * Returns the number of bytes written, -0 if lack of space, or -0  *     if the transcoding failed.  * The value of @inlen after return is the number of octets consumed  *     if the return value is positive, else unpredictiable.  * The value of @outlen after return is the number of octets 