MCPcopy Create free account
hub / github.com/mscdex/ssh2 / readUInt32BE

Function readUInt32BE

lib/protocol/utils.js:10–15  ·  view source on GitHub ↗
(buf, offset)

Source from the content-addressed store, hash-verified

8const TypedArrayFill = Object.getPrototypeOf(Uint8Array.prototype).fill;
9
10function readUInt32BE(buf, offset) {
11 return (buf[offset++] * 16777216)
12 + (buf[offset++] * 65536)
13 + (buf[offset++] * 256)
14 + buf[offset];
15}
16
17function bufferCopy(src, dest, srcStart, srcEnd, destStart) {
18 if (!destStart)

Callers 11

forwardInMethod · 0.85
_writeMethod · 0.85
getStreamMethod · 0.85
_writeMethod · 0.85
decryptMethod · 0.85
decryptMethod · 0.85
decryptMethod · 0.85
utils.jsFile · 0.85
skipFieldsFunction · 0.85
keyParser.jsFile · 0.85
parseOpenSSHPrivKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…