MCPcopy
hub / github.com/plasma-umass/browsix / write

Method write

src/kernel/types.ts:54–54  ·  view source on GitHub ↗
(buf: Buffer, pos: number, cb: (err: any, len?: number) => void)

Source from the content-addressed store, hash-verified

52export interface IFile {
53
54 write(buf: Buffer, pos: number, cb: (err: any, len?: number) => void): void;
55 read(buf: Buffer, pos: number, cb: (err: any, len?: number) => void): void;
56 stat(cb: (err: any, stats: any) => void): void;
57 llseek(offhi: number, offlo: number, whence: number, cb: (err: number, off: number) => void): void;

Callers 15

prefixStreamFunction · 0.65
dash.jsFile · 0.65
___syscall4Function · 0.65
ld.jsFile · 0.65
___syscall4Function · 0.65
___syscall181Function · 0.65
___syscall102Function · 0.65
initFunction · 0.65
sortFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
logFunction · 0.65

Implementers 5

PipeFilesrc/kernel/pipe.ts
SocketFilesrc/kernel/socket.ts
RegularFilesrc/kernel/file.ts
DirFilesrc/kernel/file.ts
NullFilesrc/kernel/file.ts

Calls

no outgoing calls

Tested by

no test coverage detected