MCPcopy Index your code
hub / github.com/nodejs/node / streamWrite

Function streamWrite

benchmark/crypto/hmac-throughput.js:57–70  ·  view source on GitHub ↗
(algo, key, message, encoding, n, len)

Source from the content-addressed store, hash-verified

55}
56
57function streamWrite(algo, key, message, encoding, n, len) {
58 const written = n * len;
59 const bits = written * 8;
60 const gbits = bits / (1024 * 1024 * 1024);
61 const h = createHmac(algo, key);
62
63 while (n-- > 0)
64 h.write(message, encoding);
65
66 h.end();
67 h.read();
68
69 bench.end(gbits);
70}

Callers

nothing calls this directly

Calls 4

createHmacFunction · 0.85
writeMethod · 0.45
endMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…