MCPcopy Index your code
hub / github.com/redis/node-redis / #continueDecodeMapValue

Method #continueDecodeMapValue

packages/client/lib/RESP/decoder.ts:1052–1068  ·  view source on GitHub ↗
(map, remaining, key, valueCb, typeMapping, chunk)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

#decodeMapAsMapMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected