Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/porsager/postgres
/ str
Function
str
cf/src/bytes.js:22–27 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
20
return
b
21
},
22
str(x) {
23
const
length = Buffer.byteLength(x)
24
fit(length)
25
b.i += buffer.write(x, b.i, length,
'utf8'
)
26
return
b
27
},
28
i16(x) {
29
fit(2)
30
buffer.writeUInt16BE(x, b.i)
Callers
nothing calls this directly
Calls
2
fit
Function · 0.70
write
Method · 0.65
Tested by
no test coverage detected