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

Function EncodeHashMeta

db/hash.go:17–19  ·  view source on GitHub ↗

EncodeHashMeta encodes meta data into byte slice

(meta *HashMeta)

Source from the content-addressed store, hash-verified

15
16//EncodeHashMeta encodes meta data into byte slice
17func EncodeHashMeta(meta *HashMeta) []byte {
18 return EncodeObject(&meta.Object)
19}
20
21//DecodeHashMeta decode meta data into meta field
22func DecodeHashMeta(b []byte) (*HashMeta, error) {

Callers 2

setHashMetaFunction · 0.85
setMetaMethod · 0.85

Calls 1

EncodeObjectFunction · 0.85

Tested by 1

setHashMetaFunction · 0.68