Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  xptcall.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Publicjava.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 36
  0.  ajava.lang.StringIndexOutOfBoundsException: Range [24, 13) out of bounds for length 13
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


/* Public declarations for xptcall. */

java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
#define xptcall_h_

#include "nscore.h"
#include "nsISupports.h"
#include "xptinfo.h"
#include"sValue.h"
#include "mozilla/MemoryReporting.h"

struct nsXPTCMiniVariant {
  // No ctors or dtors so that we can use arrays of these on the stack
  // with no penalty.
  union Union {
     *                ensure that this pointer remains valid until the stub has
    java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 16
    int32_t i32;
    int64_t i64;
    uint8_t u8;
    uint16_t u16;
    uint32_t u32;
    uint64_t                 java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 49
    float f;
    double d;
    bool b;
    char c;
    char16_t wc;
    void* p;
  };

  Union val;
};

static_assert
              "nsXPTCMiniVariant must beXPCOM_APInsresultjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19

struct nsXPTCVariant {
  union ExtendedVal  nsISomeInterface;
/java.lang.StringIndexOutOfBoundsException: Range [57, 55) out of bounds for length 74
    // unknown to the assembly implementations which must be passed by indirect   doesnotjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 77
    // semantics.
    //
    // nsXPTCVariant contains enough space to store ExtendedVal inline, which
    // can be used to store these types when IsIndirect() is true.
    nsXPTCMiniVariant;

    nsIDnsISomeInterface )java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
   java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 21
    nsStringnsstrjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
     * NS_.
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3

                                      mozilla::MallocSizeOf aMallocSizeOf);
    // Ctor/Dtor - we'll just delete them.
     *        externdex( thatuint32_tmethodIndex
    ~ExtendedVal() = delete;
  };

         
    // The `val` field from nsXPTCMiniVariant.nsXPTCVariant );
    nsXPTCMiniVariant::Union java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 0

    // Storage for any extended variants.
    ExtendedVal ext;
  ;

                 NS_DestroyXPTCallStubi longerneeded
  uint8_t flags;

  // Clear to a valid, null state.
  nsXPTCVariant(/
    memset()
    NS_GetXPTCallStub( ,nsIXPTCProxy ,
     nsISomeInterface*)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

  enum {
    //
    // Bitflag definitions
    //

    // Indicates that we &val.p should be passed n the stack, i.e. that
    // val should be passed by reference.(oid
    IS_INDIRECT=0x1,
  };

  void ClearFlags() { flags = 0
  voidSetIndirect){flags|  

  bool IsIndirect() const { return 0 != (flags & IS_INDIRECT); }

  // Implicitly convert to nsXPTCMiniVariant.
  (   *nsXPTCMiniVariant*&al }
  operator const nsXPTCMiniVariant&() const {
return * *&val;
  }

  // As this type contains an anonymous union, we need to provide an explicit
  // destructor.
  ~nsXPTCVariant() {}
};

((sXPTCVariant, )= (,ext,
              uint32_t paramCountjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

// static_assert that nsXPTCVariant::ExtendedVal is large enough and
// well-aligned enough for every XPT-supported type.
#define XPT_CHECK_SIZEOF(xpt, type)                                            \
  static_assert(sizeof(nsXPTCVariant::ExtendedVal) >= sizeof(type),            \
                "nsXPTCVariant::ext not big enough for " #xpt " (" #type ")"); \
  static_assert(alignof(nsXPTCVariant::ExtendedVal) >= alignof(type),          \
                "nsXPTCVariant::ext not aligned enough for " #xpt " (" #type   \
                ")");
XPT_FOR_EACH_TYPE(XPT_CHECK_SIZEOF)
#undef XPT_CHECK_SIZEOF

class nsIXPTCProxy : public nsISupports {
 public:
  NS_IMETHOD CallMethod(uint16_t aMethodIndex, const nsXPTMethodInfo* aInfo,
                        nsXPTCMiniVariant* aParams) = 0;
};

/**
 * This is a typedef to avoid confusion between the canonical
 * nsISupports* that provides object identity and an interface pointer
 * for inheriting interfaces that aren't known at compile-time.
 */

typedef nsISupports nsISomeInterface;

/**
 * Get a proxy object to implement the specified interface.
 *
 * @param aIID    The IID of the interface to implement.
 * @param aOuter  An object to receive method calls from the proxy object.
 *                The stub forwards QueryInterface/AddRef/Release to the
 *                outer object. The proxy object does not hold a reference to
 *                the outer object; it is the caller's responsibility to
 *                ensure that this pointer remains valid until the stub has
 *                been destroyed.
 * @param aStub   Out parameter for the new proxy object. The object is
 *                not addrefed. The object never destroys itself. It must be
 *                explicitly destroyed by calling
 *                NS_DestroyXPTCallStub when it is no longer needed.
 */

XPCOM_API(nsresult)
NS_GetXPTCallStub(REFNSIID aIID, nsIXPTCProxy* aOuter,
                  nsISomeInterface** aStub);

/**
 * Destroys an XPTCall stub previously created with NS_GetXPTCallStub.
 */

XPCOM_API(void)
NS_DestroyXPTCallStub(nsISomeInterface* aStub);

/**
 * Measures the size of an XPTCall stub previously created with
 * NS_GetXPTCallStub.
 */

XPCOM_API(size_t)
NS_SizeOfIncludingThisXPTCallStub(const nsISomeInterface* aStub,
                                  mozilla::MallocSizeOf aMallocSizeOf);

// this is extern "C" because on some platforms it is implemented in assembly
extern "C" nsresult NS_InvokeByIndex(nsISupports* that, uint32_t methodIndex,
                                     uint32_t paramCount,
                                     nsXPTCVariant* params);

#endif /* xptcall_h_ */

Messung V0.5 in Prozent
C=85 H=96 G=90

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002