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

Function write

packages/sql/pg/src/PgTypes.ts:1034–1037  ·  view source on GitHub ↗
(sink: ValueSink, value: A)

Source from the content-addressed store, hash-verified

1032 },
1033 ...(codec.write === undefined ? undefined : {
1034 write(sink: ValueSink, value: A) {
1035 const written = codec.write!(sink, value)
1036 if (Result.isFailure(written)) throw written.failure
1037 }
1038 }),
1039 ...(codec.read === undefined ? undefined : {
1040 read(bytes: Uint8Array, offset: number, size: number) {

Callers 4

writeArrayFunction · 0.70
Watch.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected