(waveObj WaveObj)
| 214 | } |
| 215 | |
| 216 | func GetMeta(waveObj WaveObj) MetaMapType { |
| 217 | desc := getWaveObjDesc(waveObj.GetOType()) |
| 218 | if desc == nil { |
| 219 | return nil |
| 220 | } |
| 221 | mval := reflect.ValueOf(waveObj).Elem().FieldByIndex(desc.MetaField.Index).Interface() |
| 222 | if mval == nil { |
| 223 | return nil |
| 224 | } |
| 225 | return mval.(MetaMapType) |
| 226 | } |
| 227 | |
| 228 | func SetMeta(waveObj WaveObj, meta map[string]any) { |
| 229 | desc := getWaveObjDesc(waveObj.GetOType()) |
no test coverage detected