Search completed in 1.15 seconds.
PRInt64
Guaranteed to be a signed 64-bit integer on all platforms. Syntax #include <prtypes.h> typedef definition
PRInt64; Description May be defined in several different ways, depending on the platform. For syntax details for each platform, see prtypes.h. ...
nsISupportsPRInt64
xpcom/ds/nsISupportsPrimitives.idlScriptable This interface provides scriptable access for 64-bit signed integers. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data
PRInt64 Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsINavBookmarksService
Obsolete since Gecko 2.0 nsIURI ge...
...or(in nsIURI aURI); void getBookmarkFoldersTArray(in nsIURI aURI, in
PRInt64Array aResult); Native code only! Obsolete since Gecko 1.9 void getBookmarkIdsForURI(in nsIURI aURI, [optional] out unsigned long count, [array, retval, size_is(count)] out long long bookmarks); Note: Renamed from getBookmarkFolders in Gecko 1.9 void getBookmarkIdsForURITArray(in nsIURI aURI, in
PRInt64Array aResult); Native code only! ...
...n nsIURI aURI, in
PRInt64Array aResult); Native code only! ...
...And 17 more matches
nsINavBookmarkObserver
rits from: nsISupports Last changed in Gecko 21.0 (Firefox 21.0 / Thunderbird 21.0 / SeaMonkey 2.18) Method overview void onBeforeItemRemoved(in long long aItemId, in unsigned short aItemType, in long long aParentId, in ACString aGUID, in ACString aParentGUID); Obsolete since Gecko 21.0 void onBeginUpdateBatch(); void onEndUpdateBatch(); void onFolderAdded(in
PRInt64 folder, in
PRInt64 parent, in PRInt32 index); Obsolete since Gecko 1.9 void onFolderChanged(in
PRInt64 folder, in ACString property); Obsolete since Gecko 1.9 void onFolderMoved(in
PRInt64 folder, in
PRInt64 oldParent, in PRInt32 oldIndex, in
PRInt64 newParent, in PRInt32 newIndex); Obsolete since Gecko 1.9 void onFolderRemoved(in
PRInt64 folder, in
PRInt64 parent, in P...
...ng aOldParentId, in long aOldIndex, in long long aNewParentId, in long aNewIndex, in unsigned short aItemType, in ACString aGUID, in ACString aOldParentGUID, in ACString aNewParentGUID); void onItemRemoved(in long long aItemId, in long long aParentId, in long aIndex, in unsigned short aItemType, in nsIURI aURI, in ACString aGUID, in ACString aParentGUID); void onItemReplaced(in
PRInt64 folder, in nsIURI item, in nsIURI newItem); Obsolete since Gecko 1.9 void onItemVisited(in long long aItemId, in long long aVisitId, in PRTime aTime, in unsigned long aTransitionType, in nsIURI aURI, in long long aParentId, in ACString aGUID, in ACString aParentGUID); void onSeparatorAdded(in
PRInt64 parent, in PRInt32 index); Obsolete since Gecko 1.9 void onSeparatorRe...
... This method notifies this observer that an item is about to be removed. It is called before the actual removal takes place. void onBeforeI...
...And 9 more matches
Starting WebLock
and close the file pointer. ...
...File); if (numread != fs) // do something useful. // ... } if (buf) free(buf); The first line of the code calls QueryInterface on theFile, and if that succeeds assigns the new interface pointer to localFile. If the QueryInterface call fails, localFile will have a value of NULL. Note that the out parameter of the method GetFileSize is a 64-bit integer. ...
...The first line of the code calls QueryInterface on theFile, and if that succeeds assigns the new interface pointer to localFile. If the QueryInterface call fails, localFile will have a value of NULL. Note that the out parameter of the method GetFileSize is a 64-bit integer. The type of this variable is
PRInt64, but this type is not represented as a primitive on all platforms. On some platforms,
PRInt64 is a struct with two fields - a high and a low 32-bit integer. ...
...er of the method GetFileSize is a 64-bit integer. The type of this variable is
PRInt64, but this type is not represented as a primitive on all platforms. On some platforms,
PRInt64 is a struct with two fields - a high and a low 32-bit integer. So operations on this type must use special macros that do the right thing on each platform. On Windows or Linux, for example, it is possible to multiply a
PRInt64 by a long like this:
PRInt64 x = 1, y = 2; y = x * 2; However, this same snippet will not compile on a platform like Macintosh OS 9, where you need to use macros to perform the calculation:
PRInt64 x, y, two; LL_I2L(x, 1); LL_I2L(y, 2); LL_I2L(two, 2); LL_MUL(y, x, two); A full listing of NSPR's long long support can be found at http://www.mozilla.org/projects/nspr/. The WebLock component ...
Observer Notifications
Bookmarks These topics indicate when actions related to bookmarks occur. Topic Data Description bookmarks-restore-begin json Sent just before bookmarks are restored from JSON. bookmarks-restore-begin html Sent just before bookmarks are restored from HTML. If bookmarks will be restored into a specific folder, observers will be passed an nsISupports
PRInt64 through their subject parameters indicating the ID of the folder. The subject is null otherwise. bookmarks-restore-begin html-initial Sent just before bookmarks are restored from HTML on initial import. If bookmarks are restored into a specific folder, observers will be passed an nsISupports
PRInt64 through their subject parameters indicating the ID of the folder. The subject is nul...
...n nsISupports
PRInt64 through their subject parameters indicating the ID of the folder. The subject is null otherwise. bookmarks-restore-success json Sent just after bookmarks are restored from JSON. bookmarks-restore-success html Sent just after bookmarks are restored from HTML. If bookmarks were restored into a specific folder, observers will be passed an nsISupports
PRInt64 through their subject parameters indicating the ID of the folder. The subject is null otherwise. bookmarks-restore-success html-initial Sent just after bookmarks are restored from HTML on initial import. If bookmarks were restored into a specific folder, observers will be passed an nsISupports
PRInt64 through their subject parameters indicating the ID of the folder. The subject is n...
... parameters indicating the ID of the folder. The subject is null otherwise. bookmarks-restore-failed json Sent when bookmarks could not be sucessfully restored from JSON. bookmarks-restore-failed html Sent when bookmarks could not be successfully restored from HTML. ...
...The subject is null otherwise. Themes These topics indicate when actions related to themes occur. ...
nsIFile
eDesc); Attributes Attribute Type Description directoryEntries nsISimpleEnumerator Returns an enumeration of the elements in a directory. Each element in the enumeration is an nsIFile. Read only. Exceptions thrown NS_ERROR_FILE_NOT_DIRECTORY Indicates that this nsIFile does not reference a directory. diskSpaceAvailable
PRInt64 The number of bytes available to non-superuser on the disk volume containing the nsIFile. Read only. fileSize
PRInt64 The value of this attribute is the number of bytes corresponding to the data represented by the file. On the Mac, getting/setting the file size with nsIFile only deals with the size of the data fork. If you need to know the size of the combined data and...
...epresented by the file. On the Mac, getting/setting the file size with nsIFile only deals with the size of the data fork. If you need to know the size of the combined data and resource forks use nsILocalFileMac.GetFileSizeWithResFork(). Changing the size of a nsIFile operates on the underlying filesystem, possibly truncating the existing file to specified size. fileSizeOfLink
PRInt64 This attribute exposes the size of the symbolic link referenced by this nsIFile. Unlike fileSize, this attribute corresponds to the size of the symbolic link referenced by this nsIFile. If this nsIFile does not reference a symbolic link, then the value of this attribute is undefined. The value of this attribute is the number of bytes corresponding to the data represented by the s...
...mbolic link. Any meta data, such as a resource fork on the Mac, is not included in the measurement of the file size. Read only. followLinks PRBool Determines whether or not the nsIFile will automatically resolve symbolic links. By default, this value is false on all non-UNIX systems. As of Mozilla 1.7, this attribute is ignored on UNIX systems. lastModifiedTime
PRInt64 This attribute exposes the time when the file referenced by this nsIFile was last modified. The value of this attribute is milliseconds since midnight (00:00:00), January 1, 1970 Greenwich Mean Time (GMT). Changing the last modified time of a nsIFile operates on the underlying filesystem. As of Gecko 1.7, changing the last modified time of a non-existent file has undefined behavi...
...e when the file referenced by this nsIFile was last modified. The value of this attribute is milliseconds since midnight (00:00:00), January 1, 1970 Greenwich Mean Time (GMT). Changing the last modified time of a nsIFile operates on the underlying filesystem. As of Gecko 1.7, changing the last modified time of a non-existent file has undefined behavior. lastModifiedTimeOfLink
PRInt64 This attribute exposes the time when the symbolic link referenced by this nsIFile was last modified. Unlike lastModifiedTime, this attribute corresponds to the last modified time of the symbolic link referenced by this nsIFile. If this nsIFile does not reference a symbolic link, then the value of this attribute is undefined. The value of this attribute is milliseconds since midn...
nsIPermissionManager
ect types (cookies, images, and so on) on a site-by-site basis. netwerk/base/nsIPermissionManager.idlScriptable Please add a summary to this article. ...
...ged in Gecko 16 (Firefox 16 / Thunderbird 16 / SeaMonkey 2.13) Inherits from: nsISupports Method overview void add(in nsIURI uri, in string type, in PRUint32 permission, [optional] in PRUint32 expireType, [optional] in
PRInt64 expireTime); void addFromPrincipal(in nsIPrincipal principal, in string type, in PRUint32 permission, [optional] in PRUint32 expireType, [optional] in
PRInt64 expireTime); void remove(in AUTF8String host, in string type); void removeFromPrincipal(in nsIPrincipal principal, in string type); void removePermission(in nsIPermission perm); void removeAllSince(in int64_t since); void removeAll(); PRUint32 testExactPermission(in nsIURI uri, in string type); PRUint32 t...
... 1 Permission expires at end of session. EXPIRE_TIME 2 Permission expires at a specified time. Methods add() Add permission information and permission type for a given URI. If the permission already exists for a given type, it will be modified. void add( in nsIURI uri, in string type, in PRUint32 permission, [optional] in PRUint32 expireType, [optional] in
PRInt64 expireTime ); Parameters uri The URI to add the permission for. type A unique, case-sensitive ASCII string identifying the consumer. Consumers should choose this string to be unique, with respect to other consumers. permission An integer specifying the permission. See nsIPermissionManager.Permission_type_constants. expireType Expiration type of the permission. See nsIPermissionManager...
...ermission. addFromPrincipal() Add permission information and permission type for a given principal. If the permission already exists for a given type, it will be modified. It is internally calling add() method using the nsIURI from the principal. void addFromPrincipal( in nsIPrincipal principal, in string type, in PRUint32 permission, [optional] in PRUint32 expireType, [optional] in
PRInt64 expireTime ); Parameters principal The principal to add the permission for. type A unique, case-sensitive ASCII string identifying the consumer. Consumers should choose this string to be unique, with respect to other consumers. permission An integer specifying the permission. See nsIPermissionManager.Permission_type_constants. expireType Expiration type of the permission. See nsIPermi...
nsIVariant
de only! DOMString getAsDOMString(); Native code only! double getAsDouble(); Native code only! float getAsFloat(); Native code only! nsresult getAsID(out nsID retval); Violates the XPCOM interface guidelines PRInt16 getAsInt16(); Native code only! PRInt32 getAsInt32(); Native code only!
PRInt64 getAsInt64(); Native code only! PRUint8 getAsInt8(); Native code only! void getAsInterface(out nsIIDPtr iid, [iid_is(iid), retval] out nsQIResult iface); Native code only! nsISupports getAsISupports(); Native code only! jsval getAsJSVal(); Native code only! string getAsString(); Native code only! void...
... is a string, it is first converted to a double, if possible. If it within the numeric limits of a PRInt16 then the value is returned. Native code only!getAsInt32 PRInt32 getAsInt32(); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it within the numeric limits of a PRInt32 then the value is returned. Native code only!getAsInt64
PRInt64 getAsInt64(); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it is of a numeric type, it is cast directly to
PRInt64. Native code only!getAsInt8 PRUint8 getAsInt8(); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it within the numeric limits of a PRInt8 then ...
...); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it within the numeric limits of a PRUint64 then the value is returned. Native code only!getAsUint64 PRUint64 getAsUint64(); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it is of a numeric type, it is cast to
PRInt64 and then to PRUint64. Note that this will do strange things with negative numbers, and float and double values greater than the numeric limits of a
PRInt64 will not convert correctly. Native code only!getAsUint8 PRUint8 getAsUint8(); Parameters None. Return value If the internal value is a string, it is first converted to a double, if possible. If it within the numeric limits of a PRUint8 then t...
mozIStorageAggregateFunction
t(); } C++ // First, create our class that will represent our function. ...
...HOD OnStep(mozIStorageValueArray *aArguments) { PRInt32 value; nsresult rv = aArguments->GetInt32(&value); NS_ENSURE_SUCCESS(rv, rv); mNumbers.AppendElement(value); } NS_IMETHOD OnFinal(nsIVariant **_result) {
PRInt64 total = 0; for (PRUint32 i = 0; i < mNumbers.Length(); i++) total += mNumbers[i]; PRInt32 mean = total / mNumbers.Length(); nsTArray<
PRInt64> data(mNumbers); for (PRUint32 i = 0; i < data.Length(); i++) { PRInt32 value = data[i] - mean; data[i] = value * value; } total = 0; for (PRUint32 i = 0; i < data.Length(); i++) total += data[i]; nsCOMPtr<nsIWritableVariant> result = do_CreateInstance("@mozilla.org/variant;1"); NS_ENSURE_TRUE(result, NS_ERROR_OUT_OF_MEMORY); rv = result->Set...
nsICookie2
The nsICookie2 interface provides information about a cookie, and extends the nsICookie interface. netwerk/cookie/nsICookie2.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Inherits from: nsICookie Attributes Attribute Type Description creationTime
PRInt64 The creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC. Read only. expiry
PRInt64 The actual expiry time of the cookie, in seconds since midnight (00:00:00), January 1, 1970 UTC. (where 0 does not represent a session cookie). Read only. isHttpOnly boolean true if the cookie is an http only cookie. Read only. isSession boolean true if the cookie is a session cookie. Note: That expiry time will also ...
...ce midnight (00:00:00), January 1, 1970 UTC. (where 0 does not represent a session cookie). Read only. isHttpOnly boolean true if the cookie is an http only cookie. Read only. isSession boolean true if the cookie is a session cookie. Note: That expiry time will also be honored for session cookies; thus, whichever is the more restrictive of the two will take effect. Read only. lastAccessed
PRInt64 The last time the cookie was accessed, in microseconds since midnight (00:00:00) on January 1, 1970 UTC. "Accessed" means creation, modification, or reading by the server. Note: This time may be approximate. Read only. rawHost AUTF8String The host (possibly fully qualified) of the cookie, without a leading dot to represent if it is a domain cookie. Read only. See also nsICookie nsICookieP...
nsICookieManager2
included in The Services.jsm JavaScript code module. ...
...okiesFromHost(in AUTF8String aHost); void importCookies(in nsIFile aCookieFile); Methods add() Adds a cookie. nsICookieService is the normal way to do this. This method is something of a back door. void add( in AUTF8String aHost, in AUTF8String aPath, in ACString aName, in ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in
PRInt64 aExpiry ); Parameters aHost The host or domain for which the cookie is set. presence of a leading dot indicates a domain cookie; otherwise, the cookie is treated as a non-domain cookie. See RFC2109 for details. The host string will be normalized to ASCII or ACE; any trailing dot will be stripped. To be a domain cookie, the host must have at least two subdomain parts (e.g. '.foo.com', not '.
nsICookiePermission
used to test for cookie permissions netwerk/cookie/nsICookiePermission.idlScriptable Please add a summary to this article. ...
...(). It may modify the isSession and expiry attributes of the cookie via the aIsSession and aExpiry parameters, in order to limit or extend the lifetime of the cookie. This is useful, for instance, to downgrade a cookie to session-only if it fails to meet certain criteria. boolean canSetCookie( in nsIURI aURI, in nsIChannel aChannel, in nsICookie2 aCookie, inout boolean aIsSession, inout
PRInt64 aExpiry ); Parameters aURI The URI trying to set the cookie. aChannel The channel corresponding to aURI. aCookie The cookie being added to the cookie database. aIsSession When canSetCookie is invoked, this is the current isSession attribute of the cookie. canSetCookie may leave this value unchanged to preserve this attribute of the cookie. aExpiry When canSetCookie is invoked, this is the curre...
nsIMemoryMultiReporterCallback
xpcom/base/nsIMemoryReporter.idlScriptable Implement this interface to handle callbacks from nsIMemoryMultiReporter instances. ...
... path The value of the path attribute. kind The value of the kind attribute. units The value of the units attribute. ...
nsIMemoryReporterManager
Note: It covers all heap allocations, but will miss any Operating System level ones not covered by memory reporters. This reporter is special-cased because it is intere...
...map, VirtualAlloc) and at the heap level (for example, via malloc(), calloc(), operator new). Note: It covers all heap allocations, but will miss any Operating System level ones not covered by memory reporters. This reporter is special-cased because it is interesting, and is moderately difficult to compute in JavaScript. -1 means unknown. Read only. resident
PRInt64 Gets the resident size (that is RSS, physical memory used). This reporter is special-cased because it is interesting, is available on all platforms, and returns a meaningful result on all common platforms. -1 means unknown. Read only. Methods enumerateMultiReporters() Returns an enumerator for looking at the installed memory multi-reporters. nsISimpleEnumerator en...
nsIPlacesImportExportService
void backupBookmarksFile(); Parameters None. exportHTMLToFile() Saves the current bookmarks hierarchy to a bookmarks.html file. void exportHTMLToFile...
...ore the import is started. "bookmarks-restore-success" is fired right after the bookmarks are successfully imported. "bookmarks-restore-failed" is fired right after a failure occurs when importing the bookmarks. Observers will be passed through their data parameters either "html" if aIsInitialImport is false or "html-initial" if aIsInitialImport is true. The observer subject will be an nsISupports
PRInt64 whose value is aFolder. void importHTMLFromFileToFolder( in nsILocalFile aFile, in
PRInt64 aFolder, in boolean aIsInitialImport ); Parameters aFile The file to import. aFolder The ID of the bookmarks folder into which to import the bookmarks. aIsInitialImport Whether or not this is an initial import. importHTMLFromURI() Obsolete since Gecko 14.0 (Firefox 14.0 / Thunderbird 1...
nsIPropertyBag2
overview nsIVariant get(in AString prop); ACString getPropertyAsACString(in AString prop); AString getPropertyAsAString(in AString prop); AUTF8String getPropertyAsAUTF8String(in AString prop); boolean getPropertyAsBool(in AString prop); double getPropertyAsDouble(in AString prop); PRInt32 getPropertyAsInt32(in AString prop);
PRInt64 getPropertyAsInt64(in AString prop); void getPropertyAsInterface(in AString prop, in nsIIDRef iid, [iid_is(iid), retval] out nsQIResult result); PRUint32 getPropertyAsUint32(in AString prop); PRUint64 getPropertyAsUint64(in AString prop); PRBool hasKey(in AString prop); Methods get() This method returns null if the value does not exist, or exists but is ...
...ue The property value as a Double. Note: Accessing a property of a different type may attempt conversion to this type. getPropertyAsInt32() PRInt32 getPropertyAsInt32( in AString prop ); Parameters prop Property to return the value of. Return value The property value as a PRInt32. Note: Accessing a property of a different type may attempt conversion to this type. getPropertyAsInt64()
PRInt64 getPropertyAsInt64( in AString prop ); Parameters prop Property to return the value of. Return value The property value as a
PRInt64. Note: Accessing a property of a different type may attempt conversion to this type. getPropertyAsInterface() This method returns null if the value exists, but is null. void getPropertyAsInterface( in AString prop, in nsIIDRef iid, [iid_is(iid), r...
nsISupportsPrimitive
portsPRUint8. TYPE_PRUINT16 6 Corresponding to nsISupportsPRUint16. TYPE_PRUINT32 7 Corresponding to nsISupportsPRUint32. TYPE_PRUINT64 8 Corresponding to nsISupportsPRUint64. TYPE_PRTIME 9 Corresponding to nsISupportsPRTime. TYPE_CHAR 10 Corresponding to nsISupportsChar. TYPE_PRINT16 11 Corresponding to nsISupportsPRInt16. TYPE_PRINT32 12 Corresponding to nsISupportsPRInt32. TYPE_
PRINT64 13 Corresponding to nsISupports
PRInt64. TYPE_FLOAT 14 Corresponding to nsISupportsFloat. TYPE_DOUBLE 15 Corresponding to nsISupportsDouble. TYPE_VOID 16 Corresponding to nsISupportsVoid. TYPE_INTERFACE_POINTER 17 Corresponding to nsISupportsInterfacePointer. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. See ...
...rtsVoid. TYPE_INTERFACE_POINTER 17 Corresponding to nsISupportsInterfacePointer. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. ...
nsIWritablePropertyBag2
valu...
... in AString prop, in double value ); Parameters prop Property to set the value of. value Value to set the property to. setPropertyAsInt32() void setPropertyAsInt32( in AString prop, in PRInt32 value ); Parameters prop Property to set the value of. value Value to set the property to. setPropertyAsInt64() void setPropertyAsInt64( in AString prop, in
PRInt64 value ); Parameters prop Property to set the value of. value Value to set the property to. setPropertyAsInterface() void setPropertyAsInterface( in AString prop, in nsISupports value ); Parameters prop Property to set the value of. value Value to set the property to. setPropertyAsUint32() void setPropertyAsUint32( in AString prop, in PRUint32 value );...
Optimizing Applications For NSPR
function made available to any shared library (most likely passed in as a function pointer), that function must have the <tt>PR_CALLBACK</tt> qualifier. NSPR functions are normally declared <tt>__cdecl</tt>. These declarations are hidden in the <tt>PR_EXTERN()</tt> declarations in NSPR's header files. NSPR functions returning floating point types and structs by value, including the derived types
PRInt64, are declared <tt>__PASCAL</tt>. These different declarations are to accommodate restrictions in Watcom's C/C++ version 11.0 and 11.0a compiler. Windows 3.1 does not provide a non-blocking file I/O interface. NSPR's file I/O is done using Windows 3.1's synchronous file I/O API. The NSPR file I/O APIs may cause a thread switch even though the I/O is fully synchronous. Do not depend on File I/O be...
Long Long (64-bit) Integers
bility. Most of the 64-bit integer operations are implemented as macros. The specific implementation of each macro depends on whether the compiler for the target platform supports 64-bit integers. For a specific target platform, if 64-bit integers are supported for that platform, define HAVE_LONG_LONG at compile time. 64-Bit Integer Types NSPR provides two types to represent 64-bit integers:
PRInt64 PRUint64 64-Bit Integer Functions The API defined for the 64-bit integer functions is consistent across all supported platforms. Limits and Initialization Relational Operators Logical Operators Arithmetic Operators Shift Operators Conversion Operators ...
NSPR Types
eric fields bound in a structure. Since the types (long long versus struct LONGLONG) are not type compatible, NSPR defines macros to manipulate 64-bit numeric fields. These macros are defined in prlong.h. Conscientious use of these macros ensures portability of code to all the platforms supported by NSPR and still provides optimal behavior on those systems that treat long long values directly.
PRInt64 PRUint64 Floating-Point Number Type The NSPR floating-point type is always 64 bits. PRFloat64 Native OS Integer Types These types are most appropriate for automatic variables. They are guaranteed to be at least 16 bits, though various architectures may define them to be wider (for example, 32 or even 64 bits). These types are never valid for fields of a structure. PRIntn PRUintn M...
PRTime
A time after the epoch has a positive value, and a time before the epoch has a negative value. In NSPR, we use the more familiar term Greenwich Mean Time (GMT) in place of UTC. Although UTC and GMT are not exactly the same in their precise definitions, they can generally be treated as if they were. ...
PR_Available64
Returns The function returns one of the following values: If the function completes successfully, it returns the number of bytes that are available for reading. For a normal file, these are the bytes beyond the current file pointer. ...
PR_CreateFileMap
size Size of the file specified by fd. prot Protection option for read and write accesses of a file mapping. This parameter consists of one of the following options: PR_PROT_READONLY. Read-only access. PR_PROT_READWRITE. Readable, and write is shared. PR_PROT_WRITECOPY. Readable, and write is private (copy-on-write). Returns If successful, a file mapping of type PRFileMap. ...
PR_MemMap
offset The starting offset of the section of file to be mapped. The offset must be aligned to whole pages. len Length of the section of the file to be mapped. Returns The starting address of the memory region to which the section of file is mapped. Returns NULL on error. Description PR_MemMap maps a section of the file represented by the file mapping fmap to memory. ...
PR_Seek64
offset A value, in bytes, used with the whence parameter to set the file pointer. A negative value causes seeking in the reverse direction. whence A value of type PRSeekWhence that specifies how to interpret the offset parameter in setting the file pointer associated with the fd parameter. The value for the whence parameter can be one of the following: PR_SEEK_SET. ...
Index
toString This content is now available at nsISupportsPRInt16.toString(). 960 nsISupportsPRInt32 Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This methods returns a string valued representation of the object. 961 data No summary! 962 toString No summary! 963 nsISupports
PRInt64 Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference This methods returns a string valued representation of the object. 964 data This content is now available at nsISupports
PRInt64.Attributes. 965 toString This content is now available at nsISupports
PRInt64.toString(). 966 nsISupportsPRTime In...
NS_ConvertASCIItoUTF16
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
NS_ConvertUTF16toUTF8
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
NS_ConvertUTF8toUTF16
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
NS_LossyConvertUTF16toASCII
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsAdoptingCString
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsAdoptingString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsAutoString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsCAutoString
nt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsRea...
nsCString
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsDependentCString
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsDependentString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsFixedCString
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsFixedString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsPromiseFlatCString
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsPromiseFlatString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsXPIDLCString
hConversion(const PRUnichar*, PRInt32) - source Parameters PRUnichar* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - so...
nsXPIDLString
AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this string Parameters PRUint32 aInteger PRInt32 aRadix void AppendInt(
PRInt64, PRInt32) - source Parameters
PRInt64 aInteger PRInt32 aRadix AppendFloat void AppendFloat(float) - source Append the given float to this string Parameters float aFloat void AppendFloat(double) - source Parameters double aFloat BeginReading PRUnichar* BeginReading() const - source reading iterators nsReadingIterator<short unsigned int>& BeginReading(nsReadingIterator...
nsICacheEntryDescriptor
nd a thorough description of their corresponding meanings. Read only. cacheElement nsISupports Get or set the cache data element. This will fail if the cache entry is stream based. The cache entry holds a strong reference to this object. The object will be released when the cache entry is destroyed. file nsIFile Get the disk file associated with the cache entry. Read only. predictedDataSize
PRInt64 Stores the Content-Length specified in the HTTP header for this entry. Checked before we write to the cache entry, to prevent ever taking up space in the cache for an entry that we know up front is going to have to be evicted anyway. See bug 588507. securityInfo nsISupports Get or set security info on the cache entry for this descriptor. This fails if the storage policy is not STORE_IN_MEMORY.
nsILocalFile
Read only. followLinks PRBool Determines whether or not the nsILocalFile will automatically resolve symbolic links. By default, this value is false on all non-UNIX systems. As of Mozilla 1.7, this attribute is ignored on UNIX systems. persistentDescriptor ACString ...
nsILocalFileMac
dCreatorFromMIMEType(in string aMIMEType); Obsolete since Gecko 1.9.2 Attributes Attribute Type Description bundleDisplayName AString Returns the display name of the application bundle (usually the human readable name of the application) Read only. bundleIdentifier AUTF8String Returns the identifier of the bundle. Read only. fileCreator OSType Native code only! fileSizeWithResFork
PRInt64 Returns the combined size of both the data fork and the resource fork (if present) rather than just the size of the data fork as returned by GetFileSize() Read only. fileType OSType File type and creator attributes. Native code only! Constants Constant Value Description CURRENT_PROCESS_CREATOR 0x8000000 Use with SetFileType() to specify the signature of current process. Obsolete since G...
nsIMemoryMultiReporter
llectReports(). This will call the specified callback's nsIMemoryMultiReporterCallback.callback() method once for each report. This will trigger any needed computation work. Note: This differs from the behavior of nsIMemoryReporter, which lets all fields except amount be accessed without triggering computation. Attributes Attribute Type Description explicitNonHeap
PRInt64 The sum of all of this multi-reporter's measurements that have a path that starts with "explicit" and are of the kind KIND_NONHEAP. Note: This is a hack that makes nsIMemoryReporterManager.explicit more efficient. This is important; multi-reporters can special-case this operation so it's much faster than gathering all the reports, filtering out the unneeded ones, and adding up ...
nsIMemoryReporter
alling nsIMemoryReporterManager.registerReporter(). Once that has been done, the reporter will be found by any client accessing the enumerator returned by nsIMemoryReporterManager.enumerateReporters(). This includes the about:memory page. Note: This interface is undergoing heavy development, and is subject to rapid changes. Attributes Attribute Type Description amount
PRInt64 The numeric value reported by the memory reporter, specified in the units indicated by the units attribute. Read only. Note: This attribute was called memoryUsed prior to Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4), and its type was long long. description AUTF8String A human-readable description of this memory usage report. Read only. ki...
nsIPermission
Last changed in Gecko 2 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Inherits from: nsISupports Attributes Attribute Type Description capability PRUint32 The permission to set: allow, deny, or unknown (which is the default). See nsIPermissionManager.Permission_type_constants for allowed values. Read only. expireTime
PRInt64 The expiration time of the permission measured in milliseconds since 1970 Jan 1 0:00:00. Read only. expireType PRUint32 The expiration type of the permission: on session termination, on a specified time, or never. Constants are defined in nsIPermissionManager.Permission_expiration_constants. Read only. host AUTF8String The host, that...
XPCOM Interface Reference
tackFramensIStandardURLnsIStreamConverternsIStreamListenernsIStringBundlensIStringBundleOverridensIStringBundleServicensIStringEnumeratornsIStructuredCloneContainernsIStyleSheetServicensISupportsnsISupports proxiesnsISupportsArraynsISupportsCStringnsISupportsCharnsISupportsDoublensISupportsFloatnsISupportsIDnsISupportsInterfacePointernsISupportsPRBoolnsISupportsPRInt16nsISupportsPRInt32nsISupports
PRInt64nsISupportsPRTimensISupportsPRUint8nsISupportsPRUint16nsISupportsPRUint32nsISupportsPRUint64nsISupportsPrimitivensISupportsPrioritynsISupportsStringnsISupportsVoidnsISupportsWeakReferencensISyncJPAKEnsISyncMessageSendernsITXTToHTMLConvnsITaggingServicensITaskbarPreviewnsITaskbarPreviewButtonnsITaskbarPreviewControllernsITaskbarProgressnsITaskbarTabPreviewnsITaskbarWindowPreviewnsITelemetrynsITextI...
XPCOM primitive
nt16;1 [scriptable, uuid(e30d94b0-4a1c-11d3-9890-006008962422)] interface nsISupportsPRInt16 : nsISupportsPrimitive { attribute PRInt16 data; string toString(); }; PRInt32 nsISupportsPRInt32 @mozilla.org/supports-PRInt32;1 [scriptable, uuid(e36c5250-4a1c-11d3-9890-006008962422)] interface nsISupportsPRInt32 : nsISupportsPrimitive { attribute PRInt32 data; string toString(); };
PRInt64 nsISupports
PRInt64 @mozilla.org/supports-
PRInt64;1 [scriptable, uuid(e3cb0ff0-4a1c-11d3-9890-006008962422)] interface nsISupports
PRInt64 : nsISupportsPrimitive { attribute
PRInt64 data; string toString(); }; float nsISupportsFloat @mozilla.org/supports-float;1 [scriptable, uuid(abeaa390-4ac0-11d3-baea-00805f8a5dd7)] interface nsISupportsFloat : nsISupportsPrimitive { attribute float...
XPCOM Interface Reference by grouping
veTLDService Worker nsIAbstractWorker Data nsIArray nsICategoryManager nsICollection nsIDictionary nsIMutableArray nsISimpleEnumerator nsISupportsChar nsISupportsDouble nsISupportsFloat nsISupportsID nsISupportsInterfacePointer nsISupportsPRBool nsISupportsPrimitive nsISupportsPRInt16 nsISupportsPRInt32 nsISupports
PRInt64 nsISupportsPriority nsISupportsPRTime nsISupportsPRUint16 nsISupportsPRUint32 nsISupportsPRUint64 nsISupportsPRUint8 nsISupportsString nsISupportsVoid nsISupportsWeakReference nsIVariant DO NOT USE nsIEnumerator nsIInProcessContentFrameMessageManager nsIScriptableIO nsIXPCScriptable Future nsIXMLHttpRequestUpload Obs...