internal RTCRtpCodecCapability(ref RTCRtpCodecCapabilityInternal v) { mimeType = v.mimeType.AsAnsiStringWithFreeMem(); clockRate = v.clockRate; channels = v.channels; sdpFmtpLine = v.sdpFmtpLine != IntPtr.Zero ? v.sdpFmtpLine.AsAnsiStringWithFreeMem() : null; }
internal RTCRtpCodecCapabilityInternal Cast() { RTCRtpCodecCapabilityInternal instance = new RTCRtpCodecCapabilityInternal { channels = this.channels, clockRate = this.clockRate, mimeType = this.mimeType.ToPtrAnsi(), sdpFmtpLine = this.sdpFmtpLine.ToPtrAnsi() }; return(instance); }