Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/net_ure/source/bridge/native/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 2 kB image not shown  

Quelle  InteropMethods.cs   Sprache: CS

 
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */


using System;
using System.Runtime.InteropServices;

namespace com.sun.star.uno.native
{
    internal static class InteropMethods
    {
        private const string BOOTSTRAP_LIBRARY = "net_bootstrap";
        private const string UNO_LIBRARY = "net_uno";

        [DllImport(BOOTSTRAP_LIBRARY, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static extern IntPtr bootstrap(InteropContext pCtx);

        [DllImport(BOOTSTRAP_LIBRARY, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static extern IntPtr defaultBootstrap_InitialComponentContext(
            [MarshalAs(UnmanagedType.LPWStr)] string sIniFile,
            [MarshalAs(UnmanagedType.LPWStr)] string sParams,
            InteropContext pCtx
        );

        [DllImport(UNO_LIBRARY, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static extern IntPtr allocateMemory(int nBytes);

        [DllImport(UNO_LIBRARY, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static extern void freeMemory(IntPtr pMemory);

        [DllImport(UNO_LIBRARY, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static extern void releaseProxy(IntPtr pBridgeHandle,
            IntPtr pInterfaceHandle, IntPtr pTypeHandle);

        [DllImport(UNO_LIBRARY, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode)]
        public static unsafe extern byte dispatchCall(
            IntPtr pBridgeHandle,
            IntPtr pInterfaceHandle,
            IntPtr pTypeHandle,
            [MarshalAs(UnmanagedType.LPWStr)] string sMethod,
            InteropValue* pNetArgs,
            InteropValue* pNetRet,
            InteropValue* pNetExc
        );
    }
}

Messung V0.5
C=99 H=98 G=98

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.