This documentation describes the frozen interfaces and functions provided by the XPCOM library. It also details the helper classes and functions provided by the XPCOM glue library.
nsIScriptableInputStream.
NS_InitXPCOM2 function initiates use of the XPCOM library by
a process.
NS_ShutdownXPCOM function terminates use of the XPCOM library.
NS_GetComponentManager function returns a reference to the
XPCOM component manager.
NS_GetComponentRegistrar function returns a reference to the
XPCOM component registrar.
NS_GetServiceManager function returns a reference to the
XPCOM service manager.
NS_GetMemoryManager function returns a reference to the XPCOM
memory manager.
NS_NewLocalFile function creates an instance of
nsILocalFile that provides a platform independent
representation of a file path.
NS_NewNativeLocalFile function creates an instance of
nsILocalFile that provides a platform independent
representation of a file path.
NS_CStringContainerInit function initializes
a nsCStringContainer instance for use as a
nsACString. This is a low-level API.
NS_CStringContainerFinish function releases
any memory allocated by a nsCStringContainer instance.
This is a low-level API.
NS_CStringGetData function gives the caller access to the
string's internal buffer. This is a low-level API.
NS_CStringSetData function copies data into the string's
internal buffer. This is a low-level API.
NS_CStringSetDataRange function copies data into a section of
the string's internal buffer. This is a low-level API.
NS_CStringCopy function copies the value from one
nsACString instance to another. This is a low-level
API.
NS_CStringAppendData function appends data to the existing
value of a nsACString instance. This is a low-level
API.
NS_CStringInsertData function appends data to the existing
value of a nsACString instance. This is a low-level
API.
NS_CStringCutData function removes a section of the string's
internal buffer. This is a low-level API.
NS_CStringCloneData function returns a null-terminated,
heap allocated copy of the string's internal buffer.
NS_StringContainerInit function initializes
a nsStringContainer instance for use as a
nsAString. This is a low-level API.
NS_StringContainerFinish function releases
any memory allocated by a nsStringContainer instance.
This is a low-level API.
NS_StringGetData function gives the caller access to the
string's internal buffer. This is a low-level API.
NS_StringSetData function copies data into the string's
internal buffer. This is a low-level API.
NS_StringSetDataRange function copies data into a section of
the string's internal buffer. This is a low-level API.
NS_StringCopy function copies the value from one
nsAString instance to another. This is a low-level
API.
NS_StringAppendData function appends data to the existing
value of a nsAString instance. This is a low-level
API.
NS_StringInsertData function appends data to the existing
value of a nsACString instance. This is a low-level
API.
NS_StringCutData function removes a section of the string's
internal buffer. This is a low-level API.
NS_StringCloneData function returns a null-terminated,
heap allocated copy of the string's internal buffer.
NS_CStringToUTF16 function converts the value of a
nsACString instance to UTF-16 and stores the result in
a nsAString instance.
NS_UTF16ToCString function converts the value of a
nsAString instance from UTF-16 to the specified multi-byte
encoding and stores the result in a nsACString instance.
nsICategoryManager interface provides access to a data
structure that holds a list of name-value pairs called categories, where each
value is a list of strings.
nsIClassInfo interface provides information about
a specific implementation class.
nsIComponentManager interface provides methods to access
factory objects and instantiate instances of classes.
nsIComponentRegistrar interface provides methods to access
and modify the XPCOM component registry.
nsIFactory interface allows for the creation of nsISupports derived classes without specifying a
concrete class type.
nsIInterfaceRequestor interface defines a generic interface
for requesting interfaces that a given object might provide access to.
nsIModule interface must be implemented by each
XPCOM component. It is the main entry point by which the system
accesses an XPCOM component.
nsIMemory interface represents a generic memory allocator.
nsIObserver interface is a generic
notification callback interface that is typically
used in conjunction with nsIObserverService.
nsIObserverService interface provides methods
to add, remove, notify, and enumerate observers of various
notifications.
nsIProgrammingLanguage interface provides an enumeration of
programming language identifiers.
nsIProperties interface provides methods to
access a map of named XPCOM object values.
nsIServiceManager manager interface provides a means to obtain
global services in an application.
nsISimpleEnumerator interface represents
an enumeration of XPCOM objects and provides methods to
access elements sequentially.
nsISupports interface.
nsISupportsWeakReference interface is a factory interface,
which produces appropriate instances of
nsIWeakReference.
nsIWeakReference interface represents a proxy for an
XPCOM object. It allows a consumer to hold an indirect, non-owning
reference to an XPCOM object.
nsIFile interface represents a file or directory
location in a platform-independent manner.
nsILocalFile interface represents a file or directory
location in a platform-independent manner that is accessible on the
local filesystem. It extends nsIFile.
nsIDirectoryService interface provides methods to
initialize and configure a directory service instance.
nsIDirectoryServiceProvider interface is used by
the Directory Service to get file locations.
nsIDirectoryServiceProvider2 interface is used by
the Directory Service to get an enumeration of file locations.
nsIInputStream interface represents a readable
data source.
nsIOutputStream interface represents a writable
data sink.
nsIScriptableInputStream interface provides scriptable
access to a nsIInputStream instance.
nsISupportsPrimitive interface serves
as a base interface for all of the nsISupports*
family of interfaces.
nsISupportsPRBool interface provides
scriptable access for boolean values.
nsISupportsChar interface provides
scriptable access for single character values (often
used to store an ASCII character).
nsISupportsPRInt16 interface provides
scriptable access for 16-bit signed integers.
values.
nsISupportsPRInt32 interface provides
scriptable access for 32-bit signed integers.
nsISupportsPRInt64 interface provides
scriptable access for 64-bit signed integers.
nsISupportsPRUint16 interface provides
scriptable access for 16-bit unsigned integers.
nsISupportsPRUint32 interface provides
scriptable access for 32-bit unsigned integers.
nsISupportsPRUint64 interface provides
scriptable access for 64-bit unsigned integers.
nsISupportsPRUint8 interface provides
scriptable access for 8-bit unsigned integers.
nsISupportsDouble interface provides
scriptable access for double-precision floating-point
values.
nsISupportsFloat interface provides
scriptable access for single-precision floating-point
values.
nsISupportsPRTime interface provides
scriptable access for PRTime values.
nsISupportsCString interface provides
scriptable access for ASCII character strings.
nsISupportsString interface provides
scriptable access for Unicode character strings.
nsISupportsVoid interface provides
scriptable access for generic pointers.
values.
nsISupportsID interface provides
scriptable access for boolean values.
nsISupportsInterfacePointer interface provides
scriptable access for XPCOM objects.
nsACString abstract class represents a character string
composed of single-byte storage units. This class is typically used to
represent ASCII or UTF-8 character arrays.
nsAString abstract class represents a character string
composed of double-byte storage units. This class is typically used
to represent Unicode character arrays.
nsEmbedString concrete class provides a way to construct a
nsAString object that allocates
null-terminated storage.
nsEmbedCString concrete class provides a way to construct a
nsACString object that allocates
null-terminated storage.
nsMemory class provides static helper routines to manage
memory. These routines allow easy access to XPCOM's global nsIMemory implementation without having to
go through the service manager to get it.
nsISupportsWeakReference.