MCPcopy
hub / github.com/prisma/prisma / genBuffer

Function genBuffer

packages/client/src/__tests__/buffer-small.test.ts:2421–2424  ·  view source on GitHub ↗
(size, args)

Source from the content-addressed store, hash-verified

2419 assert.throws(() => buf1.fill('a', 0, 0, 'foo'))
2420
2421 function genBuffer(size, args) {
2422 const b = Buffer.allocUnsafe(size)
2423 return b.fill(0).fill.apply(b, args)
2424 }
2425
2426 function bufReset() {
2427 buf1.fill(0)

Callers 1

Calls 3

allocUnsafeMethod · 0.80
applyMethod · 0.80
fillMethod · 0.80

Tested by

no test coverage detected