convertMask2Len, convertLen2Mask