MCPcopy
hub / github.com/redis/node-redis / #continueDecodeSetAsSet

Method #continueDecodeSetAsSet

packages/client/lib/RESP/decoder.ts:873–888  ·  view source on GitHub ↗
(set, remaining, itemCb, typeMapping, chunk)

Source from the content-addressed store, hash-verified

871 }
872
873 #continueDecodeSetAsSet(set, remaining, itemCb, typeMapping, chunk) {
874 const item = itemCb(chunk);
875 if (typeof item === 'function') {
876 return this.#continueDecodeSetAsSet.bind(
877 this,
878 set,
879 remaining,
880 item,
881 typeMapping
882 );
883 }
884
885 set.add(item);
886
887 return this.#decodeSetAsSet(set, remaining - 1, typeMapping, chunk);
888 }
889
890 #decodeMap(typeMapping, chunk) {
891 const length = this.#decodeUnsingedNumber(0, chunk);

Callers

nothing calls this directly

Calls 2

#decodeSetAsSetMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected