MCPcopy
hub / github.com/pyodide/pyodide / Writer

Interface Writer

src/js/streams.ts:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 * If provided, `fsync` is called when the stream is fsync'd.
55 */
56export interface Writer {
57 isatty?: boolean;
58 fsync?: () => void;
59 write(buffer: Uint8Array): number;
60 getTerminalSize?: () => { rows: number; columns: number } | undefined;
61}
62
63type Stream = FSStream & {
64 stream_ops: StreamOps;

Callers 8

make_zip_archiveFunction · 0.65
write_sysconfigFunction · 0.65
initializeNativeFSFunction · 0.65
streams.tsFile · 0.65
sendmsgAsyncFunction · 0.65
test_fs_dupFunction · 0.65
write_fileFunction · 0.65
test_dup_pipeFunction · 0.65

Implementers 9

CharacterCodeWritersrc/js/streams.ts
StringWritersrc/js/streams.ts
NodeWritersrc/js/streams.ts
DummyDistributionsrc/tests/test_package_loading.py
MemoryBIOsrc/py/_ssl.py
SSLObjectsrc/py/ssl.py
SSLSocketsrc/py/ssl.py
_WriteStreamsrc/py/pyodide/console.py
NodeSocketTransportsrc/py/pyodide/_nodesock_transport.py

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…