MCPcopy Index your code
hub / github.com/codetheweb/tuyapi / parse

Method parse

lib/message-parser.js:300–302  ·  view source on GitHub ↗

* Given a buffer potentially containing * multiple packets, this parses and returns * all of them. * @param {Buffer} buffer to parse * @returns {Array. } parsed packets

(buffer)

Source from the content-addressed store, hash-verified

298 * @returns {Array.<Packet>} parsed packets
299 */
300 parse(buffer) {
301 return this.parseRecursive(buffer, []);
302 }
303
304 /**
305 * Encodes a payload into a Tuya-protocol-compliant packet.

Callers 7

broadcastHandlerMethod · 0.95
connectMethod · 0.80
getPayloadMethod · 0.80
_decryptPre34Method · 0.80
_decrypt34Method · 0.80
_decrypt35Method · 0.80
parser.jsFile · 0.80

Calls 1

parseRecursiveMethod · 0.95

Tested by

no test coverage detected