@param s kstring to write into @param l length of input @param a input data to encode @return 0 on success; < 0 on error
See Implementation
@param s kstring to write into @param l length of input @param a input data to encode @return 0 on success; < 0 on error