Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Public Attributes
BlobImpl Class Reference
Inheritance diagram for BlobImpl:
Inheritance graph
[legend]
Collaboration diagram for BlobImpl:
Collaboration graph
[legend]

List of all members.

Classes

struct  Data

Public Member Functions

 BlobImpl (const PRUint8 *aBytes, PRInt32 aLength)
virtual ~BlobImpl ()
boolean EqualsNode (in nsIRDFNode aNode)

Public Attributes

NS_DECL_ISUPPORTS
NS_DECL_NSIRDFNODE
NS_DECL_NSIRDFBLOB Data 
mData
readonly attribute const_octet_ptr value
 The binary data.
readonly attribute long length
 The data's length.

Detailed Description

Definition at line 400 of file nsRDFService.cpp.


Class Documentation

struct BlobImpl::Data

Definition at line 403 of file nsRDFService.cpp.

Class Members
PRUint8 * mBytes
PRInt32 mLength

Constructor & Destructor Documentation

BlobImpl::BlobImpl ( const PRUint8 aBytes,
PRInt32  aLength 
) [inline]

Definition at line 408 of file nsRDFService.cpp.

    {
        mData.mLength = aLength;
        mData.mBytes = new PRUint8[aLength];
        memcpy(mData.mBytes, aBytes, aLength);
        NS_ADDREF(gRDFService);
        gRDFService->RegisterBlob(this);
    }

Here is the call graph for this function:

virtual BlobImpl::~BlobImpl ( ) [inline, virtual]

Definition at line 417 of file nsRDFService.cpp.

    {
        gRDFService->UnregisterBlob(this);
        // Use NS_RELEASE2() here, because we want to decrease the
        // refcount, but not null out the gRDFService pointer (which is
        // what a vanilla NS_RELEASE() would do).
        nsrefcnt refcnt;
        NS_RELEASE2(gRDFService, refcnt);
        delete[] mData.mBytes;
    }

Here is the call graph for this function:


Member Function Documentation

boolean nsIRDFNode::EqualsNode ( in nsIRDFNode  aNode) [inherited]

Member Data Documentation

readonly attribute long nsIRDFBlob::length [inherited]

The data's length.

Definition at line 99 of file nsIRDFLiteral.idl.

NS_DECL_ISUPPORTS NS_DECL_NSIRDFNODE NS_DECL_NSIRDFBLOB Data BlobImpl::mData

Definition at line 432 of file nsRDFService.cpp.

The binary data.

Definition at line 94 of file nsIRDFLiteral.idl.


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