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

nsFastLoadFileReader Class Reference

#include <nsFastLoadFile.h>

Inheritance diagram for nsFastLoadFileReader:

nsIObjectInputStream nsIFastLoadFileControl nsISupports nsISupports nsIBinaryInputStream nsISupports nsIInputStream nsISupports

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 256 of file nsFastLoadFile.h.


Public Member Functions

unsigned long available ()
void close ()
PRUint32 computeChecksum ()
void endMuxedDocument (in nsISupports aURI)
charPtr getBuffer (in PRUint32 aLength, in PRUint32 aAlignMask)
boolean hasMuxedDocument (in string aURISpec)
boolean isNonBlocking ()
 nsFastLoadFileReader (nsIInputStream *aStream)
void putBuffer (in charPtr aBuffer, in PRUint32 aLength)
unsigned long read (in charPtr aBuf, in unsigned long aCount)
PRUint16 read16 ()
PRUint32 read32 ()
PRUint64 read64 ()
PRUint8 read8 ()
PRBool readBoolean ()
void readByteArray (in PRUint32 aLength,[array, size_is(aLength), retval] out PRUint8 aBytes)
void readBytes (in PRUint32 aLength,[size_is(aLength), retval] out string aString)
ACString readCString ()
double readDouble ()
float readFloat ()
nsresult readID (out nsID aID)
nsISupports readObject (in PRBool aIsStrongRef)
unsigned long readSegments (in nsWriteSegmentFun aWriter, in voidPtr aClosure, in unsigned long aCount)
AString readString ()
void seek (in long whence, in long long offset)
nsISupports selectMuxedDocument (in nsISupports aURI)
void setEOF ()
void setInputStream (in nsIInputStream aInputStream)
void startMuxedDocument (in nsISupports aURI, in string aURISpec)
long long tell ()
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
readonly attribute
nsISimpleEnumerator 
dependencies
const PRInt32 NS_SEEK_CUR = 1
const PRInt32 NS_SEEK_END = 2
const PRInt32 NS_SEEK_SET = 0
struct nsISupports_vtblvtbl
struct nsISupports_vtblvtbl
struct nsISupports_vtblvtbl
struct nsISupports_vtblvtbl

Protected Attributes

nsCOMPtr< nsIStreamBufferAccessmBufferAccess
nsDocumentMapReadEntry * mCurrentDocumentMapEntry
nsFastLoadFooter mFooter
nsFastLoadHeader mHeader
NS_DECL_ISUPPORTS
NS_DECL_NSIINPUTSTREAM
NS_DECL_NSIBINARYINPUTSTREAM
NS_DECL_NSIOBJECTINPUTSTREAM
nsCOMPtr< nsIInputStream
mInputStream

Private Member Functions

NS_IMETHOD Close ()
nsresult DeserializeObject (nsISupports **aObject)
nsresult Open ()
NS_DECL_NSIFASTLOADFILECONTROL
NS_DECL_NSIFASTLOADREADCONTROL
NS_DECL_NSISEEKABLESTREAM
NS_IMETHOD 
Read (char *aBuffer, PRUint32 aCount, PRUint32 *aBytesRead)
nsresult ReadFastID (NSFastLoadID *aID)
nsresult ReadFooter (nsFastLoadFooter *aFooter)
nsresult ReadFooterPrefix (nsFastLoadFooterPrefix *aFooterPrefix)
nsresult ReadHeader (nsFastLoadHeader *aHeader)
NS_IMETHOD ReadID (nsID *aResult)
nsresult ReadMuxedDocumentInfo (nsFastLoadMuxedDocumentInfo *aInfo)
NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD 
ReadObject (PRBool aIsStrongRef, nsISupports **_retval)
NS_IMETHODIMP ReadSegments (nsWriteSegmentFun aWriter, void *aClosure, PRUint32 aCount, PRUint32 *aResult)
nsresult ReadSharpObjectInfo (nsFastLoadSharpObjectInfo *aInfo)
nsresult ReadSlowID (nsID *aID)

Friends

class nsFastLoadFileUpdater

Classes

struct  nsFastLoadFooter
struct  nsObjectMapEntry

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

Generated by  Doxygen 1.6.0   Back to index