// This file was generated by the Gtk# code generator. // Any changes made will be lost if regenerated. namespace Gst { using System; using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; #region Autogenerated code [StructLayout(LayoutKind.Sequential)] public partial struct ReferenceTimestampMeta : IEquatable { public Gst.Meta Parent; private IntPtr _reference; public Gst.Caps Reference { get { return _reference == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (_reference, typeof (Gst.Caps), false); } set { _reference = value == null ? IntPtr.Zero : value.Handle; } } public ulong Timestamp; public ulong Duration; private IntPtr _info; public Gst.Structure Info { get { return _info == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (_info, typeof (Gst.Structure), false); } set { _info = value == null ? IntPtr.Zero : value.Handle; } } public static Gst.ReferenceTimestampMeta Zero = new Gst.ReferenceTimestampMeta (); public static Gst.ReferenceTimestampMeta New(IntPtr raw) { if (raw == IntPtr.Zero) return Gst.ReferenceTimestampMeta.Zero; return (Gst.ReferenceTimestampMeta) Marshal.PtrToStructure (raw, typeof (Gst.ReferenceTimestampMeta)); } public bool Equals (ReferenceTimestampMeta other) { return true && Parent.Equals (other.Parent) && Reference.Equals (other.Reference) && Timestamp.Equals (other.Timestamp) && Duration.Equals (other.Duration) && Info.Equals (other.Info); } public override bool Equals (object other) { return other is ReferenceTimestampMeta && Equals ((ReferenceTimestampMeta) other); } public override int GetHashCode () { return this.GetType ().FullName.GetHashCode () ^ Parent.GetHashCode () ^ Reference.GetHashCode () ^ Timestamp.GetHashCode () ^ Duration.GetHashCode () ^ Info.GetHashCode (); } private static GLib.GType GType { get { return GLib.GType.Pointer; } } #endregion } }