Exemple #1
0
		public static int PackagesFromUndumpBuffer(out byte data, int len, RC.ChannelAndSubdFn channel_callback, RC.PackageDelegate package_callback, RC.PackageMatchDelegate lock_callback) {
			RCSharp.ChannelAndSubdFnWrapper channel_callback_wrapper = new RCSharp.ChannelAndSubdFnWrapper (channel_callback);
			RCSharp.PackageDelegateWrapper package_callback_wrapper = new RCSharp.PackageDelegateWrapper (package_callback);
			RCSharp.PackageMatchDelegateWrapper lock_callback_wrapper = new RCSharp.PackageMatchDelegateWrapper (lock_callback);
			int raw_ret = rc_extract_packages_from_undump_buffer(out data, len, channel_callback_wrapper.NativeDelegate, package_callback_wrapper.NativeDelegate, lock_callback_wrapper.NativeDelegate, IntPtr.Zero);
			int ret = raw_ret;
			return ret;
		}
Exemple #2
0
        public static int PackagesFromUndumpBuffer(out byte data, int len, RC.ChannelAndSubdFn channel_callback, RC.PackageDelegate package_callback, RC.PackageMatchDelegate lock_callback)
        {
            RCSharp.ChannelAndSubdFnWrapper     channel_callback_wrapper = new RCSharp.ChannelAndSubdFnWrapper(channel_callback);
            RCSharp.PackageDelegateWrapper      package_callback_wrapper = new RCSharp.PackageDelegateWrapper(package_callback);
            RCSharp.PackageMatchDelegateWrapper lock_callback_wrapper    = new RCSharp.PackageMatchDelegateWrapper(lock_callback);
            int raw_ret = rc_extract_packages_from_undump_buffer(out data, len, channel_callback_wrapper.NativeDelegate, package_callback_wrapper.NativeDelegate, lock_callback_wrapper.NativeDelegate, IntPtr.Zero);
            int ret     = raw_ret;

            return(ret);
        }
Exemple #3
0
        public static int PackagesFromUndumpFile(string filename, RC.ChannelAndSubdFn channel_callback, RC.PackageDelegate package_callback, RC.PackageMatchDelegate lock_callback)
        {
            IntPtr filename_as_native = GLib.Marshaller.StringToPtrGStrdup(filename);

            RCSharp.ChannelAndSubdFnWrapper     channel_callback_wrapper = new RCSharp.ChannelAndSubdFnWrapper(channel_callback);
            RCSharp.PackageDelegateWrapper      package_callback_wrapper = new RCSharp.PackageDelegateWrapper(package_callback);
            RCSharp.PackageMatchDelegateWrapper lock_callback_wrapper    = new RCSharp.PackageMatchDelegateWrapper(lock_callback);
            int raw_ret = rc_extract_packages_from_undump_file(filename_as_native, channel_callback_wrapper.NativeDelegate, package_callback_wrapper.NativeDelegate, lock_callback_wrapper.NativeDelegate, IntPtr.Zero);
            int ret     = raw_ret;

            GLib.Marshaller.Free(filename_as_native);
            return(ret);
        }
Exemple #4
0
		public static int PackagesFromUndumpFile(string filename, RC.ChannelAndSubdFn channel_callback, RC.PackageDelegate package_callback, RC.PackageMatchDelegate lock_callback) {
			IntPtr filename_as_native = GLib.Marshaller.StringToPtrGStrdup (filename);
			RCSharp.ChannelAndSubdFnWrapper channel_callback_wrapper = new RCSharp.ChannelAndSubdFnWrapper (channel_callback);
			RCSharp.PackageDelegateWrapper package_callback_wrapper = new RCSharp.PackageDelegateWrapper (package_callback);
			RCSharp.PackageMatchDelegateWrapper lock_callback_wrapper = new RCSharp.PackageMatchDelegateWrapper (lock_callback);
			int raw_ret = rc_extract_packages_from_undump_file(filename_as_native, channel_callback_wrapper.NativeDelegate, package_callback_wrapper.NativeDelegate, lock_callback_wrapper.NativeDelegate, IntPtr.Zero);
			int ret = raw_ret;
			GLib.Marshaller.Free (filename_as_native);
			return ret;
		}