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

Function makeBuffer

benchmark/zlib/crc32.js:18–22  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

16});
17
18function makeBuffer(size) {
19 const buf = Buffer.allocUnsafe(size);
20 for (let i = 0; i < size; i++) buf[i] = (i * 1103515245 + 12345) & 0xff;
21 return buf;
22}
23
24function makeAsciiString(size) {
25 const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…