FromBytes decodes the input byte slice into the FZSet object using MessagePack. Returns an error if decoding fails, otherwise nil.
(b []byte)
| 1057 | // FromBytes decodes the input byte slice into the FZSet object using MessagePack. |
| 1058 | // Returns an error if decoding fails, otherwise nil. |
| 1059 | func (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 | // |