MCPcopy Create free account
hub / github.com/redis/node-redis / #decodeMap

Method #decodeMap

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

Source from the content-addressed store, hash-verified

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

Callers 2

#decodeTypeValueMethod · 0.95

Calls 2

#decodeUnsingedNumberMethod · 0.95
#decodeMapItemsMethod · 0.95

Tested by

no test coverage detected