Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsDiskCacheHeader Struct Reference

#include <nsDiskCacheMap.h>

List of all members.

Public Member Functions

 nsDiskCacheHeader ()
void Swap ()
void Unswap ()

Public Attributes

PRUint32 mVersion
PRInt32 mDataSize
PRInt32 mEntryCount
PRUint32 mIsDirty
PRInt32 mRecordCount
PRUint32 mEvictionRank [kBuckets]
PRUint32 mBucketUsage [kBuckets]

Detailed Description

Definition at line 336 of file nsDiskCacheMap.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 353 of file nsDiskCacheMap.h.

    {
#if defined(IS_LITTLE_ENDIAN)
        mVersion     = ::PR_htonl(mVersion);
        mDataSize    = ::PR_htonl(mDataSize);
        mEntryCount  = ::PR_htonl(mEntryCount);
        mIsDirty     = ::PR_htonl(mIsDirty);
        mRecordCount = ::PR_htonl(mRecordCount);

        for (PRUint32 i = 0; i < kBuckets ; i++) {
            mEvictionRank[i] = ::PR_htonl(mEvictionRank[i]);
            mBucketUsage[i]  = ::PR_htonl(mBucketUsage[i]);
        }
#endif
    }

Here is the caller graph for this function:

Definition at line 369 of file nsDiskCacheMap.h.

    {
#if defined(IS_LITTLE_ENDIAN)
        mVersion     = ::PR_ntohl(mVersion);
        mDataSize    = ::PR_ntohl(mDataSize);
        mEntryCount  = ::PR_ntohl(mEntryCount);
        mIsDirty     = ::PR_ntohl(mIsDirty);
        mRecordCount = ::PR_ntohl(mRecordCount);

        for (PRUint32 i = 0; i < kBuckets ; i++) {
            mEvictionRank[i] = ::PR_ntohl(mEvictionRank[i]);
            mBucketUsage[i]  = ::PR_ntohl(mBucketUsage[i]);
        }
#endif
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 343 of file nsDiskCacheMap.h.

Definition at line 338 of file nsDiskCacheMap.h.

Definition at line 339 of file nsDiskCacheMap.h.

Definition at line 342 of file nsDiskCacheMap.h.

Definition at line 340 of file nsDiskCacheMap.h.

Definition at line 341 of file nsDiskCacheMap.h.

Definition at line 337 of file nsDiskCacheMap.h.


The documentation for this struct was generated from the following file: