Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
fit
Function · 0.70
write
Method · 0.65
Tested by
no test coverage detected