MCPcopy Create free account
hub / github.com/ethstorage/es-node / DecodeKV

Method DecodeKV

ethstorage/shard_manager.go:227–229  ·  view source on GitHub ↗

DecodeKV Decode the encoded KV data.

(kvIdx uint64, b []byte, hash common.Hash, providerAddr common.Address, encodeType uint64)

Source from the content-addressed store, hash-verified

225
226// DecodeKV Decode the encoded KV data.
227func (sm *ShardManager) DecodeKV(kvIdx uint64, b []byte, hash common.Hash, providerAddr common.Address, encodeType uint64) ([]byte, bool, error) {
228 return sm.DecodeOrEncodeKV(kvIdx, b, hash, providerAddr, false, encodeType)
229}
230
231// EncodeKV Encode the raw KV data.
232func (sm *ShardManager) EncodeKV(kvIdx uint64, b []byte, hash common.Hash, providerAddr common.Address, encodeType uint64) ([]byte, bool, error) {

Callers

nothing calls this directly

Calls 1

DecodeOrEncodeKVMethod · 0.95

Tested by

no test coverage detected