MCPcopy Create free account
hub / github.com/DNAProject/DNA / makePrefixedKey

Function makePrefixedKey

smartcontract/storage/cachedb.go:62–67  ·  view source on GitHub ↗
(dst []byte, prefix byte, key []byte)

Source from the content-addressed store, hash-verified

60}
61
62func makePrefixedKey(dst []byte, prefix byte, key []byte) []byte {
63 dst = ensureBuffer(dst, len(key)+1)
64 dst[0] = prefix
65 copy(dst[1:], key)
66 return dst
67}
68
69// Commit current transaction cache to block cache
70func (self *CacheDB) Commit() {

Callers 3

putMethod · 0.85
getMethod · 0.85
deleteMethod · 0.85

Calls 1

ensureBufferFunction · 0.85

Tested by

no test coverage detected