Exemplo n.º 1
0
        internal unsafe void __MarshalTo(ref DeviceDetails.__Native @ref)
        {
            fixed(char *deviceID = this.DeviceID)
            {
                fixed(char *ptr = & @ref.DeviceID)
                {
                    Utilities.CopyMemory((IntPtr)((void *)ptr), (IntPtr)((void *)deviceID), this.DeviceID.Length * 2);
                }
            }

            fixed(char *displayName = this.DisplayName)
            {
                fixed(char *ptr2 = & @ref.DisplayName)
                {
                    Utilities.CopyMemory((IntPtr)((void *)ptr2), (IntPtr)((void *)displayName), this.DisplayName.Length * 2);
                }
            }

            @ref.Role         = this.Role;
            @ref.OutputFormat = WaveFormatExtensible.__NewNative();
            this.OutputFormat.__MarshalTo(ref @ref.OutputFormat);
        }