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

Method #decodeSet

packages/client/lib/RESP/decoder.ts:807–818  ·  view source on GitHub ↗
(typeMapping, chunk)

Source from the content-addressed store, hash-verified

805 }
806
807 #decodeSet(typeMapping, chunk) {
808 const length = this.#decodeUnsingedNumber(0, chunk);
809 if (typeof length === 'function') {
810 return this.#continueDecodeSetLength.bind(this, length, typeMapping);
811 }
812
813 return this.#decodeSetItems(
814 length,
815 typeMapping,
816 chunk
817 );
818 }
819
820 #continueDecodeSetLength(lengthCb, typeMapping, chunk) {
821 const length = lengthCb(chunk);

Callers 2

#decodeTypeValueMethod · 0.95

Calls 2

#decodeUnsingedNumberMethod · 0.95
#decodeSetItemsMethod · 0.95

Tested by

no test coverage detected