MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / FromBytes

Method FromBytes

structure/zset.go:1059–1061  ·  view source on GitHub ↗

FromBytes decodes the input byte slice into the FZSet object using MessagePack. Returns an error if decoding fails, otherwise nil.

(b []byte)

Source from the content-addressed store, hash-verified

1057// FromBytes decodes the input byte slice into the FZSet object using MessagePack.
1058// Returns an error if decoding fails, otherwise nil.
1059func (fzs *FZSet) FromBytes(b []byte) error {
1060 return encoding.NewMessagePackDecoder(b).Decode(fzs)
1061}
1062
1063// getZSetFromDB fetches and deserializes FZSet from the database.
1064//

Callers 1

TestSortedSetFunction · 0.80

Calls 2

NewMessagePackDecoderFunction · 0.92
DecodeMethod · 0.45

Tested by 1

TestSortedSetFunction · 0.64