Unmarshal deserialization
(data []byte, value interface{})
| 118 | |
| 119 | // Unmarshal deserialization |
| 120 | func (s JSONSnappyEncoding) Unmarshal(data []byte, value interface{}) error { |
| 121 | b, err := snappy.Decode(nil, data) |
| 122 | if err != nil { |
| 123 | return err |
| 124 | } |
| 125 | |
| 126 | return json.Unmarshal(b, value) |
| 127 | } |