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

Function bigIntFromBuffer

lib/protocol/keyParser.js:139–141  ·  view source on GitHub ↗
(buf)

Source from the content-addressed store, hash-verified

137 }
138
139 function bigIntFromBuffer(buf) {
140 return BigInt(`0x${buf.hexSlice(0, buf.length)}`);
141 }
142
143 function bigIntToBuffer(bn) {
144 let hex = bn.toString(16);

Callers 1

keyParser.jsFile · 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…