()
| 75 | } |
| 76 | |
| 77 | func (s storeWithEncoderValues) Bytes() []byte { |
| 78 | data := s.Values.Get() |
| 79 | if data == nil { |
| 80 | return []byte{} |
| 81 | } |
| 82 | |
| 83 | if m := s.Marshaller; m != nil { |
| 84 | b, err := m.Marshal(data) |
| 85 | if err != nil { |
| 86 | return []byte{} |
| 87 | } |
| 88 | |
| 89 | return b |
| 90 | } |
| 91 | |
| 92 | return []byte(cast.ToString(data)) |
| 93 | } |
| 94 | |
| 95 | func (s storeWithEncoderValues) String() string { |
| 96 | data := s.Values.Get() |