MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / Read

Method Read

internal/caches/reader.go:30–30  ·  view source on GitHub ↗

Read 实现io.Reader接口

(buf []byte)

Source from the content-addressed store, hash-verified

28
29 // Read 实现io.Reader接口
30 Read(buf []byte) (int, error)
31
32 // ReadBodyRange 读取某个范围内的Body
33 ReadBodyRange(buf []byte, start int64, end int64, callback ReaderFunc) error

Callers 15

ReadMethod · 0.65
ReadMethod · 0.65
ReadMethod · 0.65
ReadMethod · 0.65
PauseWindowMethod · 0.65
CopyWithFilterFunction · 0.65
ReadMethod · 0.65
loadMethod · 0.65
ReadServerMethod · 0.65

Calls

no outgoing calls

Tested by 13

TestNewByteRangesReaderFunction · 0.52
TestNewFilterReaderFunction · 0.52
TestPiece_AddFunction · 0.52
TestPiece_Add_SameFunction · 0.52
TestNewCacheFunction · 0.52
TestCache_IncreaseInt64Function · 0.52
TestCache_ReadFunction · 0.52