// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gst.Video {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;

#region Autogenerated code
	[StructLayout(LayoutKind.Sequential)]
	public partial struct H274DigitallySignedContentVerification : IEquatable<H274DigitallySignedContentVerification> {

		public byte Id;
		public byte VerificationSubstreamId;
		public uint SignatureLengthInOctetsMinus1;
		[MarshalAs (UnmanagedType.ByValArray, SizeConst=0)]
		public byte[] Signature;
		public byte SignedContentEndFlag;

		public static Gst.Video.H274DigitallySignedContentVerification Zero = new Gst.Video.H274DigitallySignedContentVerification ();

		public static Gst.Video.H274DigitallySignedContentVerification New(IntPtr raw) {
			if (raw == IntPtr.Zero)
				return Gst.Video.H274DigitallySignedContentVerification.Zero;
			return (Gst.Video.H274DigitallySignedContentVerification) Marshal.PtrToStructure (raw, typeof (Gst.Video.H274DigitallySignedContentVerification));
		}

		[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_h274_digitally_signed_content_verification_get_type();

		public static GLib.GType GType { 
			get {
				IntPtr raw_ret = gst_h274_digitally_signed_content_verification_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		public bool Equals (H274DigitallySignedContentVerification other)
		{
			return true && Id.Equals (other.Id) && VerificationSubstreamId.Equals (other.VerificationSubstreamId) && SignatureLengthInOctetsMinus1.Equals (other.SignatureLengthInOctetsMinus1) && Signature.Equals (other.Signature) && SignedContentEndFlag.Equals (other.SignedContentEndFlag);
		}

		public override bool Equals (object other)
		{
			return other is H274DigitallySignedContentVerification && Equals ((H274DigitallySignedContentVerification) other);
		}

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ Id.GetHashCode () ^ VerificationSubstreamId.GetHashCode () ^ SignatureLengthInOctetsMinus1.GetHashCode () ^ Signature.GetHashCode () ^ SignedContentEndFlag.GetHashCode ();
		}

		public static explicit operator GLib.Value (Gst.Video.H274DigitallySignedContentVerification boxed)
		{
			GLib.Value val = GLib.Value.Empty;
			val.Init (Gst.Video.H274DigitallySignedContentVerification.GType);
			val.Val = boxed;
			return val;
		}

		public static explicit operator Gst.Video.H274DigitallySignedContentVerification (GLib.Value val)
		{
			return (Gst.Video.H274DigitallySignedContentVerification) val.Val;
		}
#endregion
	}
}
