MCPcopy
hub / github.com/grafana/tempo / canRead

Method canRead

pkg/io/buffered.go:45–47  ·  view source on GitHub ↗
(buf *readerBuffer, offset, length int64)

Source from the content-addressed store, hash-verified

43}
44
45func (r *BufferedReaderAt) canRead(buf *readerBuffer, offset, length int64) bool {
46 return offset >= buf.off && (offset+length <= buf.off+int64(len(buf.buf)))
47}
48
49func (r *BufferedReaderAt) read(buf *readerBuffer, b []byte, offset int64) {
50 start := offset - buf.off

Callers 1

ReadAtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected