UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines (9 loc) • 321 B
import { readFileWindowFully } from "@openclaw/fs-safe/advanced"; //#region src/config/sessions/file-range.ts async function readFileRangeAsync(e, t, n) { const r = Buffer.alloc(n); const i = await readFileWindowFully(e, r, t); return i === n ? r : r.subarray(0, i); } //#endregion export { readFileRangeAsync as t };