ByteBuffer my_word_latin1 = char2bb(cmy_word_latin1);
ByteBuffer result_buff = ByteBuffer.allocateDirect(16);
ByteBuffer my_word_truncated = char2bb(cmy_word_truncated);
int[] lengths = new int[] { 6 , 4 }; // 4 is too small
int rr3 = csmap.recode(lengths, latin1_num, utf8_num,
my_word_latin1, result_buff);
printRecodeResult(rr3, lengths, my_word_latin1, result_buff);
assert(rr3 == CharsetMapConst.RecodeStatus.RECODE_BUFF_TOO_SMALL);
assert(lengths[0] == 3);
assert(lengths[1] == 4);