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

Method ReadAt

tempodb/backend/readerat.go:38–41  ·  view source on GitHub ↗

ReadAt implements ContextReader

(ctx context.Context, p []byte, off int64)

Source from the content-addressed store, hash-verified

36
37// ReadAt implements ContextReader
38func (b *backendReader) ReadAt(ctx context.Context, p []byte, off int64) (int, error) {
39 err := b.r.ReadRange(ctx, b.name, (uuid.UUID)(b.meta.BlockID), b.meta.TenantID, uint64(off), p, nil)
40 return len(p), err
41}
42
43// ReadAll implements ContextReader
44func (b *backendReader) ReadAll(ctx context.Context) ([]byte, error) {

Callers

nothing calls this directly

Calls 1

ReadRangeMethod · 0.65

Tested by

no test coverage detected