MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / write

Method write

src/types.ts:223–223  ·  view source on GitHub ↗

Write single chunk. Returns true if buffer has space, false as backpressure signal under "block".

(chunk: Uint8Array | string)

Source from the content-addressed store, hash-verified

221
222 /** Write single chunk. Returns true if buffer has space, false as backpressure signal under "block". */
223 write(chunk: Uint8Array | string): boolean;
224
225 /** Write multiple chunks atomically. All-or-nothing. Returns true/false like write(). */
226 writev(chunks: (Uint8Array | string)[]): boolean;

Callers

nothing calls this directly

Implementers 6

SyncMemoryWritersamples/util.ts
MockSyncWriterbenchmarks/10-advanced-features.ts
MemoryWritersamples/util.ts
BroadcastWritersrc/broadcast.ts
PushWritersrc/push.ts
MockWriterbenchmarks/10-advanced-features.ts

Calls

no outgoing calls

Tested by

no test coverage detected