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

Method #decodeBoolean

packages/client/lib/RESP/decoder.ts:230–234  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

228 }
229
230 #decodeBoolean(chunk) {
231 const boolean = chunk[this.#cursor] === ASCII.t;
232 this.#cursor += 3; // skip {t | f}\r\n
233 return boolean;
234 }
235
236 #decodeNumber(type, chunk) {
237 if (type === String) {

Callers 2

#decodeTypeValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected