Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsFastLoadFileWriter Class Reference

#include <nsFastLoadFile.h>

Inheritance diagram for nsFastLoadFileWriter:

nsIObjectOutputStream nsIFastLoadFileControl nsISupports nsIBinaryOutputStream nsISupports nsIOutputStream nsISupports nsFastLoadFileUpdater

List of all members.


Detailed Description

Inherit from the concrete class nsBinaryInputStream, which inherits from abstract nsIObjectInputStream but does not implement its direct methods. Though the names are not as clear as I'd like, this seems to be the best way to share nsBinaryStream.cpp code.

Definition at line 405 of file nsFastLoadFile.h.


Public Member Functions

void addDependency (in nsIFile aFile)
void close ()
void endMuxedDocument (in nsISupports aURI)
void flush ()
charPtr getBuffer (in PRUint32 aLength, in PRUint32 aAlignMask)
boolean hasMuxedDocument (in string aURISpec)
boolean isNonBlocking ()
 nsFastLoadFileWriter (nsIOutputStream *aStream, nsIFastLoadFileIO *aFileIO)
void putBuffer (in charPtr aBuffer, in PRUint32 aLength)
void seek (in long whence, in long long offset)
nsISupports selectMuxedDocument (in nsISupports aURI)
void setEOF ()
void setOutputStream (in nsIOutputStream aOutputStream)
void startMuxedDocument (in nsISupports aURI, in string aURISpec)
long long tell ()
unsigned long write (in string aBuf, in unsigned long aCount)
void write16 (in PRUint16 a16)
void write32 (in PRUint32 a32)
void write64 (in PRUint64 a64)
void write8 (in PRUint8 aByte)
void writeBoolean (in PRBool aBoolean)
void writeByteArray ([array, size_is(aLength)] in PRUint8 aBytes, in PRUint32 aLength)
void writeBytes ([size_is(aLength)] in string aString, in PRUint32 aLength)
void writeCompoundObject (in nsISupports aObject, in nsIIDRef aIID, in PRBool aIsStrongRef)
void writeDouble (in double aDouble)
void writeFloat (in float aFloat)
unsigned long writeFrom (in nsIInputStream aFromStream, in unsigned long aCount)
void writeID (in nsIDRef aID)
void writeObject (in nsISupports aObject, in PRBool aIsStrongRef)
unsigned long writeSegments (in nsReadSegmentFun aReader, in voidPtr aClosure, in unsigned long aCount)
void writeSingleRefObject (in nsISupports aObject)
void writeStringZ (in string aString)
void writeUtf8Z (in wstring aString)
void writeWStringZ (in wstring aString)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

attribute PRUint32 checksum
const PRInt32 NS_SEEK_CUR = 1
const PRInt32 NS_SEEK_END = 2
const PRInt32 NS_SEEK_SET = 0

Protected Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIOUTPUTSTREAM
NS_DECL_NSIBINARYOUTPUTSTREAM
NS_DECL_NSIOBJECTOUTPUTSTREAM
nsresult 
WriteFully (const char *aBuf, PRUint32 aCount)

Protected Attributes

nsCOMPtr< nsIStreamBufferAccessmBufferAccess
nsDocumentMapWriteEntry * mCurrentDocumentMapEntry
PLDHashTable mDependencyMap
PLDHashTable mDocumentMap
nsCOMPtr< nsIFastLoadFileIO > mFileIO
nsFastLoadHeader mHeader
PLDHashTable mIDMap
PLDHashTable mObjectMap
nsCOMPtr< nsIOutputStreammOutputStream
PLDHashTable mURIMap

Private Member Functions

NS_IMETHOD Close ()
nsresult Init ()
NS_DECL_NSIFASTLOADFILECONTROL
NS_DECL_NSIFASTLOADWRITECONTROL
NS_DECL_NSISEEKABLESTREAM
nsresult 
MapID (const nsID &aSlowID, NSFastLoadID *aResult)
nsresult Open ()
NS_IMETHOD WriteCompoundObject (nsISupports *aObject, const nsIID &aIID, PRBool aIsStrongRef)
nsresult WriteFastID (NSFastLoadID aID)
nsresult WriteFooter ()
nsresult WriteFooterPrefix (const nsFastLoadFooterPrefix &aFooterPrefix)
nsresult WriteHeader (nsFastLoadHeader *aHeader)
NS_IMETHOD WriteID (const nsID &aID)
nsresult WriteMuxedDocumentInfo (const nsFastLoadMuxedDocumentInfo &aInfo)
NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD 
WriteObject (nsISupports *aObject, PRBool aIsStrongRef)
nsresult WriteObjectCommon (nsISupports *aObject, PRBool aIsStrongRef, PRUint32 aQITag)
nsresult WriteSharpObjectInfo (const nsFastLoadSharpObjectInfo &aInfo)
NS_IMETHOD WriteSingleRefObject (nsISupports *aObject)
nsresult WriteSlowID (const nsID &aID)

Static Private Member Functions

static PLDHashOperator PR_CALLBACK DependencyMapEnumerate (PLDHashTable *aTable, PLDHashEntryHdr *aHdr, PRUint32 aNumber, void *aData)
static PLDHashOperator PR_CALLBACK DocumentMapEnumerate (PLDHashTable *aTable, PLDHashEntryHdr *aHdr, PRUint32 aNumber, void *aData)
static PLDHashOperator PR_CALLBACK IDMapEnumerate (PLDHashTable *aTable, PLDHashEntryHdr *aHdr, PRUint32 aNumber, void *aData)
static PLDHashOperator PR_CALLBACK ObjectMapEnumerate (PLDHashTable *aTable, PLDHashEntryHdr *aHdr, PRUint32 aNumber, void *aData)

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

Generated by  Doxygen 1.6.0   Back to index