@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
12 lines • 691 B
TypeScript
import type { RAMAccessor } from '../../accessor/ram.ts';
import { type PathSpec } from '../../types.ts';
/**
* Write bytes at an offset of one key. A live pipe has no offset: its bytes
* go into the pipe, in the order they are written, which is how an open
* descriptor delivers to a FIFO (`exec >"$1"` and a link to a substitution
* write through here). A device that discards writes (`/dev/null`) keeps
* nothing, so windows written into it pad nothing up to their offset. Mirrors
* Python's pwrite.
*/
export declare function pwrite(accessor: RAMAccessor, path: PathSpec, data: Uint8Array, offset: number, signal?: AbortSignal): Promise<void>;
//# sourceMappingURL=pwrite.d.ts.map