Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/electric-sql/pglite
/ codeOnlyBuffer
Function
codeOnlyBuffer
packages/pg-protocol/src/serializer.ts:267–268 ·
view source on GitHub ↗
(code: code)
Source
from the content-addressed store, hash-verified
265
}
266
267
const
codeOnlyBuffer = (code: code): Uint8Array =>
268
new
Uint8Array([code, 0x00, 0x00, 0x00, 0x04])
269
270
const
flushBuffer = codeOnlyBuffer(code.flush)
271
const
syncBuffer = codeOnlyBuffer(code.sync)
Callers
1
serializer.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected