MCPcopy Create free account
hub / github.com/porsager/postgres / fit

Function fit

cjs/src/bytes.js:65–73  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

63module.exports = b
64
65function fit(x) {
66 if (buffer.length - b.i < x) {
67 const prev = buffer
68 , length = prev.length
69
70 buffer = Buffer.allocUnsafe(length + (length >> 1) + x)
71 prev.copy(buffer)
72 }
73}
74
75function reset() {
76 b.i = 0

Callers 4

strFunction · 0.70
i16Function · 0.70
i32Function · 0.70
zFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected