MCPcopy Index your code
hub / github.com/git-bug/git-bug / ReadData

Method ReadData

cache/repo_cache_common.go:64–66  ·  view source on GitHub ↗

ReadData will attempt to read arbitrary data from the given hash

(hash repository.Hash)

Source from the content-addressed store, hash-verified

62
63// ReadData will attempt to read arbitrary data from the given hash
64func (c *RepoCache) ReadData(hash repository.Hash) ([]byte, error) {
65 return c.repo.ReadData(hash)
66}
67
68// StoreData will store arbitrary data and return the corresponding hash
69func (c *RepoCache) StoreData(data []byte) (repository.Hash, error) {

Callers 1

ServeHTTPMethod · 0.95

Calls 1

ReadDataMethod · 0.65

Tested by

no test coverage detected