Release 1.22.7
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Audio / AudioMeta.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.Audio {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         [StructLayout(LayoutKind.Sequential)]
13         public partial struct AudioMeta : IEquatable<AudioMeta> {
14
15                 public Gst.Meta Meta;
16                 private IntPtr _info;
17                 public Gst.Audio.AudioInfo Info {
18                         get {
19                                 return _info == IntPtr.Zero ? null : (Gst.Audio.AudioInfo) GLib.Opaque.GetOpaque (_info, typeof (Gst.Audio.AudioInfo), false);
20                         }
21                         set {
22                                 _info = value == null ? IntPtr.Zero : value.Handle;
23                         }
24                 }
25                 private UIntPtr samples;
26                 public ulong Samples {
27                         get {
28                                 return (ulong) samples;
29                         }
30                         set {
31                                 samples = new UIntPtr (value);
32                         }
33                 }
34                 private UIntPtr offsets;
35                 public ulong Offsets {
36                         get {
37                                 return (ulong) offsets;
38                         }
39                         set {
40                                 offsets = new UIntPtr (value);
41                         }
42                 }
43                 [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
44                 private IntPtr[] _gstGstReserved;
45
46                 public static Gst.Audio.AudioMeta Zero = new Gst.Audio.AudioMeta ();
47
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));
52                 }
53
54                 public bool Equals (AudioMeta other)
55                 {
56                         return true && Meta.Equals (other.Meta) && Info.Equals (other.Info) && Samples.Equals (other.Samples) && Offsets.Equals (other.Offsets);
57                 }
58
59                 public override bool Equals (object other)
60                 {
61                         return other is AudioMeta && Equals ((AudioMeta) other);
62                 }
63
64                 public override int GetHashCode ()
65                 {
66                         return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Info.GetHashCode () ^ Samples.GetHashCode () ^ Offsets.GetHashCode ();
67                 }
68
69                 private static GLib.GType GType {
70                         get { return GLib.GType.Pointer; }
71                 }
72 #endregion
73         }
74 }