Home
last modified time | relevance | path

Searched refs:MAX_INIT_LEN (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_frontend/arkguard/src/utils/
DListUtil.ts19 public static readonly MAX_INIT_LEN: number = 0xFFFF; property in ListUtil
26 if (isNaN(length) || length < 0 || length > this.MAX_INIT_LEN) {
27 console.error(`array init length is invalid, should in range: [0, ${this.MAX_INIT_LEN}]`);
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DListUtil.spec.ts38 let arr = ListUtil.getInitList(ListUtil.MAX_INIT_LEN);
39 assert.isTrue(arr.length === ListUtil.MAX_INIT_LEN);
43 let arr = ListUtil.getInitList(ListUtil.MAX_INIT_LEN + 1);