MCPcopy Create free account
hub / github.com/distributedio/titan / DecodeHashMeta

Function DecodeHashMeta

db/hash.go:22–28  ·  view source on GitHub ↗

DecodeHashMeta decode meta data into meta field

(b []byte)

Source from the content-addressed store, hash-verified

20
21//DecodeHashMeta decode meta data into meta field
22func DecodeHashMeta(b []byte) (*HashMeta, error) {
23 obj, err := DecodeObject(b)
24 if err != nil {
25 return nil, err
26 }
27 return &HashMeta{Object: *obj}, nil
28}
29
30// Hash implements the hashtable
31type Hash struct {

Callers 2

getHashMetaFunction · 0.85
GetHashFunction · 0.85

Calls 1

DecodeObjectFunction · 0.85

Tested by 1

getHashMetaFunction · 0.68