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

Function end

packages/sql/pg/src/PgProtocol.ts:710–715  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

708}
709
710const end = (): Uint8Array => {
711 // Relative to `start`, because writing may have moved the message to a new
712 // pool buffer. The length counts itself but not the type byte.
713 sharedWriter.setInt32(sharedWriter.start + 1, sharedWriter.offset - sharedWriter.start - 1)
714 return sharedWriter.finish()
715}
716
717const empty = (type: number): Uint8Array => {
718 const writer = begin(type)

Callers 9

encodeParseUnsafeFunction · 0.70
encodeBindUnsafeFunction · 0.70
makeBindEncoderFunction · 0.70
encodeExecuteFunction · 0.70
encodeDescribeFunction · 0.70
encodeCloseFunction · 0.70
encodePasswordMessageFunction · 0.70
encodeSASLResponseFunction · 0.70

Calls 2

setInt32Method · 0.80
finishMethod · 0.45

Tested by

no test coverage detected