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

Method #decodeDoubleInteger

packages/client/lib/RESP/decoder.ts:363–370  ·  view source on GitHub ↗
(isNegative, integer, chunk)

Source from the content-addressed store, hash-verified

361 }
362
363 #decodeDoubleInteger(isNegative, integer, chunk) {
364 if (chunk[this.#cursor] === ASCII.i) {
365 this.#cursor += 5; // skip inf\r\n
366 return isNegative ? -Infinity : Infinity;
367 }
368
369 return this.#continueDecodeDoubleInteger(isNegative, integer, chunk);
370 }
371
372 #continueDecodeDoubleInteger(isNegative, integer, chunk) {
373 let cursor = this.#cursor;

Callers 2

#decodeDoubleMethod · 0.95

Calls 1

Tested by

no test coverage detected