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

Method #continueDecodeArrayItems

packages/client/lib/RESP/decoder.ts:790–805  ·  view source on GitHub ↗
(array, filled, itemCb, typeMapping, chunk)

Source from the content-addressed store, hash-verified

788 }
789
790 #continueDecodeArrayItems(array, filled, itemCb, typeMapping, chunk) {
791 const item = itemCb(chunk);
792 if (typeof item === 'function') {
793 return this.#continueDecodeArrayItems.bind(
794 this,
795 array,
796 filled,
797 item,
798 typeMapping
799 );
800 }
801
802 array[filled++] = item;
803
804 return this.#decodeArrayItems(array, filled, typeMapping, chunk);
805 }
806
807 #decodeSet(typeMapping, chunk) {
808 const length = this.#decodeUnsingedNumber(0, chunk);

Callers

nothing calls this directly

Calls 1

#decodeArrayItemsMethod · 0.95

Tested by

no test coverage detected