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

nsIBinaryOutputStream Interface Reference

import "nsIBinaryOutputStream.idl";

Inheritance diagram for nsIBinaryOutputStream:

nsIOutputStream nsISupports nsIObjectOutputStream nsFastLoadFileWriter nsFastLoadFileUpdater

List of all members.

Detailed Description

This interface allows writing of primitive data types (integers, floating-point values, booleans, etc.) to a stream in a binary, untagged, fixed-endianness format. This might be used, for example, to implement network protocols or to produce architecture-neutral binary disk files, i.e. ones that can be read and written by both big-endian and little-endian platforms. Output is written in big-endian order (high-order byte first), as this is traditional network order.


Definition at line 55 of file nsIBinaryOutputStream.idl.

Public Member Functions

void close ()
void flush ()
boolean isNonBlocking ()
void setOutputStream (in nsIOutputStream aOutputStream)
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 writeDouble (in double aDouble)
void writeFloat (in float aFloat)
unsigned long writeFrom (in nsIInputStream aFromStream, in unsigned long aCount)
unsigned long writeSegments (in nsReadSegmentFun aReader, in voidPtr aClosure, in unsigned long aCount)
void writeStringZ (in string aString)
void writeUtf8Z (in wstring aString)
void writeWStringZ (in wstring aString)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

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

Generated by  Doxygen 1.6.0   Back to index