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

Function str

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

Source from the content-addressed store, hash-verified

19 return b
20 },
21 str(x) {
22 const length = Buffer.byteLength(x)
23 fit(length)
24 b.i += buffer.write(x, b.i, length, 'utf8')
25 return b
26 },
27 i16(x) {
28 fit(2)
29 buffer.writeUInt16BE(x, b.i)

Callers

nothing calls this directly

Calls 2

fitFunction · 0.70
writeMethod · 0.65

Tested by

no test coverage detected