[util] Set function lengths