MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / CacheFullAndWriter

Method CacheFullAndWriter

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

for a non-seekable Stream, if Read is called, this function won't work. caches the full Stream and writes it to writer (if provided, even if the stream is already cached).

(up *UpdateProgress, writer io.Writer)

Source from the content-addressed store, hash-verified

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)
51 // if the Stream is not a File and is not cached, returns nil.
52 GetFile() File
53}

Callers 15

PutMethod · 0.65
PutMethod · 0.65
PutMethod · 0.65
PutMethod · 0.65
OldUploadMethod · 0.65
PutMethod · 0.65
cacheAndHashFunction · 0.65
PutMethod · 0.65
putSongStreamMethod · 0.65
PutMethod · 0.65
newUploadMethod · 0.65
UploadByMultipartMethod · 0.65

Implementers 1

FileStreaminternal/stream/stream.go

Calls

no outgoing calls

Tested by

no test coverage detected