MCPcopy Create free account
hub / github.com/Effect-TS/effect / seek

Method seek

packages/platform/deno/src/DenoFileSystem.ts:210–220  ·  view source on GitHub ↗
(offset: FileSystem.SizeInput, from: FileSystem.SeekMode)

Source from the content-addressed store, hash-verified

208 }
209
210 seek(offset: FileSystem.SizeInput, from: FileSystem.SeekMode) {
211 const size = FileSystem.Size(offset)
212 return Effect.sync(() => {
213 if (from === "start") {
214 this.position = size
215 } else {
216 this.position += size
217 }
218 return FileSystem.Size(this.position)
219 })
220 }
221
222 private readChunk(method: string, buffer: Uint8Array) {
223 return Effect.suspend(() => {

Callers 2

testLayerFunction · 0.45
makeFunction · 0.45

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected