summaryrefslogtreecommitdiff
path: root/sources/generated/Gst.Base/BitWriter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'sources/generated/Gst.Base/BitWriter.cs')
-rw-r--r--sources/generated/Gst.Base/BitWriter.cs258
1 files changed, 258 insertions, 0 deletions
diff --git a/sources/generated/Gst.Base/BitWriter.cs b/sources/generated/Gst.Base/BitWriter.cs
new file mode 100644
index 0000000..c6aaebd
--- /dev/null
+++ b/sources/generated/Gst.Base/BitWriter.cs
@@ -0,0 +1,258 @@
+// This file was generated by the Gtk# code generator.
+// Any changes made will be lost if regenerated.
+
+namespace Gst.Base {
+
+ using System;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Runtime.InteropServices;
+
+#region Autogenerated code
+ [StructLayout(LayoutKind.Sequential)]
+ public partial struct BitWriter : IEquatable<BitWriter> {
+
+ public byte Data;
+ public uint BitSize;
+ private uint bit_capacity;
+ private bool auto_grow;
+ private bool owned;
+ [MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
+ private IntPtr[] _gstGstReserved;
+
+ public static Gst.Base.BitWriter Zero = new Gst.Base.BitWriter ();
+
+ public static Gst.Base.BitWriter New(IntPtr raw) {
+ if (raw == IntPtr.Zero)
+ return Gst.Base.BitWriter.Zero;
+ return (Gst.Base.BitWriter) Marshal.PtrToStructure (raw, typeof (Gst.Base.BitWriter));
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_align_bytes(IntPtr raw, byte trailing_bit);
+
+ public bool AlignBytes(byte trailing_bit) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_align_bytes(this_as_native, trailing_bit);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_bit_writer_free(IntPtr raw);
+
+ public void Free() {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ gst_bit_writer_free(this_as_native);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr gst_bit_writer_free_and_get_buffer(IntPtr raw);
+
+ public Gst.Buffer FreeAndGetBuffer() {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ IntPtr raw_ret = gst_bit_writer_free_and_get_buffer(this_as_native);
+ Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint gst_bit_writer_get_remaining(IntPtr raw);
+
+ public uint Remaining {
+ get {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ uint raw_ret = gst_bit_writer_get_remaining(this_as_native);
+ uint ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern uint gst_bit_writer_get_size(IntPtr raw);
+
+ public uint Size {
+ get {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ uint raw_ret = gst_bit_writer_get_size(this_as_native);
+ uint ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_bit_writer_init(IntPtr raw);
+
+ public void Init() {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ gst_bit_writer_init(this_as_native);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_bit_writer_init_with_data(IntPtr raw, byte[] data, uint size, bool initialized);
+
+ public void InitWithData(byte[] data, uint size, bool initialized) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ gst_bit_writer_init_with_data(this_as_native, data, size, initialized);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_bit_writer_init_with_size(IntPtr raw, uint size, bool mfixed);
+
+ public void InitWithSize(uint size, bool mfixed) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ gst_bit_writer_init_with_size(this_as_native, size, mfixed);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_put_bits_uint16(IntPtr raw, ushort value, uint nbits);
+
+ public bool PutBitsUint16(ushort value, uint nbits) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_put_bits_uint16(this_as_native, value, nbits);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_put_bits_uint32(IntPtr raw, uint value, uint nbits);
+
+ public bool PutBitsUint32(uint value, uint nbits) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_put_bits_uint32(this_as_native, value, nbits);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_put_bits_uint64(IntPtr raw, ulong value, uint nbits);
+
+ public bool PutBitsUint64(ulong value, uint nbits) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_put_bits_uint64(this_as_native, value, nbits);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_put_bits_uint8(IntPtr raw, byte value, uint nbits);
+
+ public bool PutBitsUint8(byte value, uint nbits) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_put_bits_uint8(this_as_native, value, nbits);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_put_bytes(IntPtr raw, byte data, uint nbytes);
+
+ public bool PutBytes(byte data, uint nbytes) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_put_bytes(this_as_native, data, nbytes);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_bit_writer_reset(IntPtr raw);
+
+ public void Reset() {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ gst_bit_writer_reset(this_as_native);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern IntPtr gst_bit_writer_reset_and_get_buffer(IntPtr raw);
+
+ public Gst.Buffer ResetAndGetBuffer() {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ IntPtr raw_ret = gst_bit_writer_reset_and_get_buffer(this_as_native);
+ Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true);
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ [DllImport("libgstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_bit_writer_set_pos(IntPtr raw, uint pos);
+
+ public bool SetPos(uint pos) {
+ IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
+ System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
+ bool raw_ret = gst_bit_writer_set_pos(this_as_native, pos);
+ bool ret = raw_ret;
+ ReadNative (this_as_native, ref this);
+ System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
+ return ret;
+ }
+
+ static void ReadNative (IntPtr native, ref Gst.Base.BitWriter target)
+ {
+ target = New (native);
+ }
+
+ public bool Equals (BitWriter other)
+ {
+ return true && Data.Equals (other.Data) && BitSize.Equals (other.BitSize) && bit_capacity.Equals (other.bit_capacity) && auto_grow.Equals (other.auto_grow) && owned.Equals (other.owned);
+ }
+
+ public override bool Equals (object other)
+ {
+ return other is BitWriter && Equals ((BitWriter) other);
+ }
+
+ public override int GetHashCode ()
+ {
+ return this.GetType ().FullName.GetHashCode () ^ Data.GetHashCode () ^ BitSize.GetHashCode () ^ bit_capacity.GetHashCode () ^ auto_grow.GetHashCode () ^ owned.GetHashCode ();
+ }
+
+ private static GLib.GType GType {
+ get { return GLib.GType.Pointer; }
+ }
+#endregion
+ }
+}