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

Function begin

packages/sql/pg/src/PgProtocol.ts:699–708  ·  view source on GitHub ↗
(type: number)

Source from the content-addressed store, hash-verified

697 * callback allocates a closure over the caller's options on every message.
698 */
699const begin = (type: number): Writer => {
700 const writer = sharedWriter
701 writer.begin()
702 writer.reserve(5)
703 const bytes = writer.bytes
704 const offset = writer.offset
705 bytes[offset] = type
706 writer.offset = offset + 5
707 return writer
708}
709
710const end = (): Uint8Array => {
711 // Relative to `start`, because writing may have moved the message to a new

Callers 10

emptyFunction · 0.70
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

beginMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected