| 221 | } |
| 222 | |
| 223 | cel::OpaqueValue NetworkAddressRepClone( |
| 224 | const cel::OpaqueValueDispatcher* absl_nonnull, |
| 225 | cel::OpaqueValueContent content, google::protobuf::Arena* absl_nonnull arena) { |
| 226 | const NetworkAddressRep* rep = content.To<const NetworkAddressRep*>(); |
| 227 | ABSL_DCHECK(rep != nullptr); |
| 228 | return NetworkAddressRep::MakeValue(*rep).GetOpaque(); |
| 229 | } |
| 230 | |
| 231 | // Opaque Value types can be implemented either with a shared dispatcher or |
| 232 | // with a subclass (using vtable dispatch). |