MCPcopy
hub / github.com/directus/directus / slice

Method slice

packages/storage-driver-supabase/src/index.ts:323–332  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

321
322 // @ts-expect-error
323 override async slice(start: number, end: number) {
324 if (this._streamEnded) return null;
325
326 // Act like the stream ended after it's been called once
327 this._streamEnded = true;
328
329 // Shift the start and end offsets to always start at 0, since the read stream is only a stream of one chunk with
330 // length of `chunkSize`
331 return super.slice(0, end - start);
332 }
333}
334
335class FileReader {

Callers 15

parseFilterFunctionPathFunction · 0.80
getCompressedFunction · 0.80
generateJoiFunction · 0.80
checkImplicitRelationFunction · 0.80
moveInArrayFunction · 0.80
getFunction · 0.80
depluralizeFunction · 0.80
processChunkFunction · 0.80
normalizePathFunction · 0.80
isZeroMethod · 0.80
embeddedIpv4Method · 0.80
depluralizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected