MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / RangeRead

Method RangeRead

internal/model/obj.go:47–47  ·  view source on GitHub ↗

for a non-seekable Stream, RangeRead supports peeking some data, and CacheFullAndWriter still works

(http_range.Range)

Source from the content-addressed store, hash-verified

45 SetExist(Obj)
46 // for a non-seekable Stream, RangeRead supports peeking some data, and CacheFullAndWriter still works
47 RangeRead(http_range.Range) (io.Reader, error)
48 // for a non-seekable Stream, if Read is called, this function won't work.
49 // caches the full Stream and writes it to writer (if provided, even if the stream is already cached).
50 CacheFullAndWriter(up *UpdateProgress, writer io.Writer) (File, error)

Callers 15

calProofCodeMethod · 0.65
uploadMethod · 0.65
LinkMethod · 0.65
LinkMethod · 0.65
PutMethod · 0.65
generateProofCodeMethod · 0.65
hfDirectUploadMethod · 0.65
PutMethod · 0.65
UploadDigestRangeFunction · 0.65
generateStrmFunction · 0.65
LinkMethod · 0.65
RunMethod · 0.65

Implementers 1

FileStreaminternal/stream/stream.go

Calls

no outgoing calls

Tested by 1

TestRangeReadFunction · 0.52