(oscNum string, msg *RpcMessage)
| 113 | } |
| 114 | |
| 115 | func EncodeWaveOSCMessageEx(oscNum string, msg *RpcMessage) ([]byte, error) { |
| 116 | if msg == nil { |
| 117 | return nil, fmt.Errorf("nil message") |
| 118 | } |
| 119 | barr, err := json.Marshal(msg) |
| 120 | if err != nil { |
| 121 | return nil, fmt.Errorf("error marshalling message to json: %w", err) |
| 122 | } |
| 123 | return EncodeWaveOSCBytes(oscNum, barr) |
| 124 | } |
| 125 | |
| 126 | var shutdownOnce sync.Once |
| 127 |
nothing calls this directly
no test coverage detected