(typeMapping, chunk)
| 888 | } |
| 889 | |
| 890 | #decodeMap(typeMapping, chunk) { |
| 891 | const length = this.#decodeUnsingedNumber(0, chunk); |
| 892 | if (typeof length === 'function') { |
| 893 | return this.#continueDecodeMapLength.bind(this, length, typeMapping); |
| 894 | } |
| 895 | |
| 896 | return this.#decodeMapItems( |
| 897 | length, |
| 898 | typeMapping, |
| 899 | chunk |
| 900 | ); |
| 901 | } |
| 902 | |
| 903 | #continueDecodeMapLength(lengthCb, typeMapping, chunk) { |
| 904 | const length = lengthCb(chunk); |
no test coverage detected