MCPcopy Create free account
hub / github.com/CPChain/chain / Get

Method Get

database/leveldb.go:162–164  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

160}
161
162func (dt *table) Get(key []byte) ([]byte, error) {
163 return dt.db.Get(append([]byte(dt.prefix), key...))
164}
165
166func (dt *table) Delete(key []byte) error {
167 return dt.db.Delete(append([]byte(dt.prefix), key...))

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected