MCPcopy Index your code
hub / github.com/PokemonGoF/PokemonGo-Bot / writeNumber

Function writeNumber

map-chat/javascript/browserMqtt.js:1992–1997  ·  view source on GitHub ↗

* writeNumber - write a two byte number to the buffer * * @param buffer - destination * @param pos - offset * @param number - number to write * @return number of bytes written * * @api private

(buffer, pos, number)

Source from the content-addressed store, hash-verified

1990 * @api private
1991 */
1992function writeNumber(buffer, pos, number) {
1993 buffer.writeUInt8(number >> 8, pos)
1994 buffer.writeUInt8(number & 0x00FF, pos + 1)
1995
1996 return 2
1997}
1998
1999/**
2000 * writeStringOrBuffer - write a String or Buffer with the its length prefix

Callers 8

connectFunction · 0.85
publishFunction · 0.85
confirmationFunction · 0.85
subscribeFunction · 0.85
subackFunction · 0.85
unsubscribeFunction · 0.85
writeStringFunction · 0.85
writeStringOrBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected