gi: support length type