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

Interface IFile

src/kernel/types.ts:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
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;
58 readdir(cb: (err: any, files: string[]) => void): void;
59
60 ref(): void;
61 unref(): void;
62}
63
64export interface ITask {
65 kernel: IKernel;

Callers 55

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
dash.jsFile · 0.65
___syscall3Function · 0.65
ld.jsFile · 0.65
___syscall3Function · 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