MCPcopy Create free account
hub / github.com/Effect-TS/effect / backendMessage

Function backendMessage

packages/sql/pg/test/PgConnection.in-process.test.ts:36–40  ·  view source on GitHub ↗
(tag: string, payload: Uint8Array)

Source from the content-addressed store, hash-verified

34})
35
36const backendMessage = (tag: string, payload: Uint8Array): Buffer => {
37 const length = Buffer.allocUnsafe(4)
38 length.writeInt32BE(payload.length + 4)
39 return Buffer.concat([Buffer.from(tag), length, payload])
40}
41
42const int32 = (value: number): Buffer => {
43 const bytes = Buffer.allocUnsafe(4)

Callers 6

authenticationFunction · 0.70
textRowResultFunction · 0.70
errorResponseFunction · 0.70
columnFunction · 0.70
statementResultFunction · 0.70

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected