// Method to marshal from managed struct tot native internal unsafe void __MarshalTo(ref __PcmNative @ref) { @ref.waveFormatTag = this.waveFormatTag; @ref.channels = this.channels; @ref.sampleRate = this.sampleRate; @ref.averageBytesPerSecond = this.averageBytesPerSecond; @ref.blockAlign = this.blockAlign; @ref.bitsPerSample = this.bitsPerSample; }
// Method to marshal from managed struct tot native internal void __MarshalTo(ref __PcmNative @ref) { @ref.waveFormatTag = waveFormatTag; @ref.channels = channels; @ref.sampleRate = sampleRate; @ref.averageBytesPerSecond = averageBytesPerSecond; @ref.blockAlign = blockAlign; @ref.bitsPerSample = bitsPerSample; }
// Method to marshal from native to managed struct internal unsafe void __MarshalFrom(ref __PcmNative @ref) { this.waveFormatTag = @ref.waveFormatTag; this.channels = @ref.channels; this.sampleRate = @ref.sampleRate; this.averageBytesPerSecond = @ref.averageBytesPerSecond; this.blockAlign = @ref.blockAlign; this.bitsPerSample = @ref.bitsPerSample; this.extraSize = 0; }
// Method to marshal from native to managed struct internal void __MarshalFrom(ref __PcmNative @ref) { waveFormatTag = @ref.waveFormatTag; channels = @ref.channels; sampleRate = @ref.sampleRate; averageBytesPerSecond = @ref.averageBytesPerSecond; blockAlign = @ref.blockAlign; bitsPerSample = @ref.bitsPerSample; extraSize = 0; }
internal unsafe void __MarshalFree(ref __PcmNative @ref) { @ref.__MarshalFree(); }