(map, remaining, key, valueCb, typeMapping, chunk)
| 1050 | } |
| 1051 | |
| 1052 | #continueDecodeMapValue(map, remaining, key, valueCb, typeMapping, chunk) { |
| 1053 | const value = valueCb(chunk); |
| 1054 | if (typeof value === 'function') { |
| 1055 | return this.#continueDecodeMapValue.bind( |
| 1056 | this, |
| 1057 | map, |
| 1058 | remaining, |
| 1059 | key, |
| 1060 | value, |
| 1061 | typeMapping |
| 1062 | ); |
| 1063 | } |
| 1064 | |
| 1065 | map.set(key, value); |
| 1066 | |
| 1067 | return this.#decodeMapAsMap(map, remaining - 1, typeMapping, chunk); |
| 1068 | } |
| 1069 | |
| 1070 | #decodeMapAsObject(object, remaining, typeMapping, chunk) { |
| 1071 | while (remaining > 0) { |
nothing calls this directly
no test coverage detected