public GLib.Bytes CopyBytes(ulong offset, ulong size) { IntPtr raw_ret = gst_adapter_copy_bytes(Handle, new UIntPtr(offset), new UIntPtr(size)); GLib.Bytes ret = new GLib.Bytes(raw_ret); return(ret); }
public GLib.Bytes ReadPixelBytes() { IntPtr raw_ret = gdk_pixbuf_read_pixel_bytes(Handle); GLib.Bytes ret = new GLib.Bytes(raw_ret); return(ret); }
public unsafe Resource(GLib.Bytes data) { IntPtr error = IntPtr.Zero; Raw = g_resource_new_from_data(data == null ? IntPtr.Zero : data.Handle, out error); if (error != IntPtr.Zero) { throw new GLib.GException(error); } }
public unsafe GLib.Bytes ToBytes(Gst.Sdp.MIKEYEncryptInfo info) { IntPtr error = IntPtr.Zero; IntPtr raw_ret = gst_mikey_message_to_bytes(Handle, info == null ? IntPtr.Zero : info.Handle, out error); GLib.Bytes ret = new GLib.Bytes(raw_ret); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public GLib.Bytes GetExtensionBytes(out ushort bits) { 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_rtp_buffer_get_extension_bytes(this_as_native, out bits); GLib.Bytes ret = new GLib.Bytes(raw_ret); ReadNative(this_as_native, ref this); System.Runtime.InteropServices.Marshal.FreeHGlobal(this_as_native); return(ret); }
public unsafe bool Communicate(GLib.Bytes stdin_buf, GLib.Cancellable cancellable, GLib.Bytes stdout_buf, GLib.Bytes stderr_buf) { IntPtr error = IntPtr.Zero; bool raw_ret = g_subprocess_communicate(Handle, stdin_buf == null ? IntPtr.Zero : stdin_buf.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, stdout_buf == null ? IntPtr.Zero : stdout_buf.Handle, stderr_buf == null ? IntPtr.Zero : stderr_buf.Handle, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public unsafe bool WriteBytes(GLib.Bytes buffer) { IntPtr error = IntPtr.Zero; bool raw_ret = gdk_pixbuf_loader_write_bytes(Handle, buffer == null ? IntPtr.Zero : buffer.Handle, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public unsafe bool CommunicateFinish(GLib.IAsyncResult result, GLib.Bytes stdout_buf, GLib.Bytes stderr_buf) { IntPtr error = IntPtr.Zero; bool raw_ret = g_subprocess_communicate_finish(Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), stdout_buf == null ? IntPtr.Zero : stdout_buf.Handle, stderr_buf == null ? IntPtr.Zero : stderr_buf.Handle, out error); bool ret = raw_ret; if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public unsafe GLib.Bytes ReadBytes(ulong count, GLib.Cancellable cancellable) { IntPtr error = IntPtr.Zero; IntPtr raw_ret = g_input_stream_read_bytes(Handle, new UIntPtr(count), cancellable == null ? IntPtr.Zero : cancellable.Handle, out error); GLib.Bytes ret = new GLib.Bytes(raw_ret); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public unsafe GLib.Bytes ReadBytesFinish(GLib.IAsyncResult result) { IntPtr error = IntPtr.Zero; IntPtr raw_ret = g_input_stream_read_bytes_finish(Handle, result == null ? IntPtr.Zero : ((result is GLib.Object) ? (result as GLib.Object).Handle : (result as GLib.AsyncResultAdapter).Handle), out error); GLib.Bytes ret = new GLib.Bytes(raw_ret); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
public BytesIcon(GLib.Bytes bytes) : base(IntPtr.Zero) { if (GetType() != typeof(BytesIcon)) { var vals = new List <GLib.Value> (); var names = new List <string> (); names.Add("bytes"); vals.Add(new GLib.Value(bytes)); CreateNativeObject(names.ToArray(), vals.ToArray()); return; } Raw = g_bytes_icon_new(bytes == null ? IntPtr.Zero : bytes.Handle); }
public unsafe GLib.Bytes LookupData(string path, GLib.ResourceLookupFlags lookup_flags) { IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup(path); IntPtr error = IntPtr.Zero; IntPtr raw_ret = g_resource_lookup_data(Handle, native_path, (int)lookup_flags, out error); GLib.Bytes ret = new GLib.Bytes(raw_ret); GLib.Marshaller.Free(native_path); if (error != IntPtr.Zero) { throw new GLib.GException(error); } return(ret); }
private void InternalSendDataEvent(GLib.Bytes data) { SendDataEventNativeDelegate unmanaged = null; unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("send_data")); unmanaged = (SendDataEventNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SendDataEventNativeDelegate)); } if (unmanaged == null) { return; } unmanaged(this.Handle, data == null ? IntPtr.Zero : data.Handle); }
private void InternalOnMessageDataEvent(GLib.Bytes data) { GLib.Value ret = GLib.Value.Empty; GLib.ValueArray inst_and_params = new GLib.ValueArray(2); GLib.Value[] vals = new GLib.Value [2]; vals [0] = new GLib.Value(this); inst_and_params.Append(vals [0]); vals [1] = new GLib.Value(data); inst_and_params.Append(vals [1]); g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret); foreach (GLib.Value v in vals) { v.Dispose(); } }
public Pixbuf(GLib.Bytes data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride) : base(IntPtr.Zero) { if (GetType() != typeof(Pixbuf)) { var vals = new List <GLib.Value> (); var names = new List <string> (); names.Add("colorspace"); vals.Add(new GLib.Value(colorspace)); names.Add("has_alpha"); vals.Add(new GLib.Value(has_alpha)); names.Add("bits_per_sample"); vals.Add(new GLib.Value(bits_per_sample)); names.Add("width"); vals.Add(new GLib.Value(width)); names.Add("height"); vals.Add(new GLib.Value(height)); names.Add("rowstride"); vals.Add(new GLib.Value(rowstride)); CreateNativeObject(names.ToArray(), vals.ToArray()); return; } Raw = gdk_pixbuf_new_from_bytes(data == null ? IntPtr.Zero : data.Handle, (int)colorspace, has_alpha, bits_per_sample, width, height, rowstride); }
public Buffer(GLib.Bytes bytes) { Raw = gst_buffer_new_wrapped_bytes(bytes == null ? IntPtr.Zero : bytes.Handle); }
public void OnMessageData(GLib.Bytes data) { gst_webrtc_data_channel_on_message_data(Handle, data == null ? IntPtr.Zero : data.Handle); }
public void SendData(GLib.Bytes data) { gst_webrtc_data_channel_send_data(Handle, data == null ? IntPtr.Zero : data.Handle); }
public void CommunicateAsync(GLib.Bytes stdin_buf, GLib.Cancellable cancellable, GLib.AsyncReadyCallback cb) { GLibSharp.AsyncReadyCallbackWrapper cb_wrapper = new GLibSharp.AsyncReadyCallbackWrapper(cb); cb_wrapper.PersistUntilCalled(); g_subprocess_communicate_async(Handle, stdin_buf == null ? IntPtr.Zero : stdin_buf.Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }
public MIKEYMessage(GLib.Bytes bytes, Gst.Sdp.MIKEYDecryptInfo info) { Raw = gst_mikey_message_new_from_bytes(bytes == null ? IntPtr.Zero : bytes.Handle, info == null ? IntPtr.Zero : info.Handle); }
protected virtual void OnOnMessageDataEvent(GLib.Bytes data) { InternalOnMessageDataEvent(data); }
protected virtual void OnSendDataEvent(GLib.Bytes data) { InternalSendDataEvent(data); }