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

Method #decodeNestedType

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

Source from the content-addressed store, hash-verified

673 }
674
675 #decodeNestedType(typeMapping, chunk) {
676 const type = chunk[this.#cursor];
677 return ++this.#cursor === chunk.length ?
678 this.#decodeNestedTypeValue.bind(this, type, typeMapping) :
679 this.#decodeNestedTypeValue(type, typeMapping, chunk);
680 }
681
682 #decodeNestedTypeValue(type, typeMapping, chunk) {
683 switch (type) {

Callers 6

#decodeArrayItemsMethod · 0.95
#decodeSetAsSetMethod · 0.95
#decodeMapAsMapMethod · 0.95
#continueDecodeMapKeyMethod · 0.95
#decodeMapAsObjectMethod · 0.95

Calls 1

Tested by

no test coverage detected