1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 [StructLayout(LayoutKind.Sequential)]
13 public partial struct AudioMeta : IEquatable<AudioMeta> {
17 public Gst.Audio.AudioInfo Info {
19 return _info == IntPtr.Zero ? null : (Gst.Audio.AudioInfo) GLib.Opaque.GetOpaque (_info, typeof (Gst.Audio.AudioInfo), false);
22 _info = value == null ? IntPtr.Zero : value.Handle;
25 private UIntPtr samples;
26 public ulong Samples {
28 return (ulong) samples;
31 samples = new UIntPtr (value);
34 private UIntPtr offsets;
35 public ulong Offsets {
37 return (ulong) offsets;
40 offsets = new UIntPtr (value);
43 [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
44 private IntPtr[] _gstGstReserved;
46 public static Gst.Audio.AudioMeta Zero = new Gst.Audio.AudioMeta ();
48 public static Gst.Audio.AudioMeta New(IntPtr raw) {
49 if (raw == IntPtr.Zero)
50 return Gst.Audio.AudioMeta.Zero;
51 return (Gst.Audio.AudioMeta) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioMeta));
54 public bool Equals (AudioMeta other)
56 return true && Meta.Equals (other.Meta) && Info.Equals (other.Info) && Samples.Equals (other.Samples) && Offsets.Equals (other.Offsets);
59 public override bool Equals (object other)
61 return other is AudioMeta && Equals ((AudioMeta) other);
64 public override int GetHashCode ()
66 return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Info.GetHashCode () ^ Samples.GetHashCode () ^ Offsets.GetHashCode ();
69 private static GLib.GType GType {
70 get { return GLib.GType.Pointer; }