125
|
1 module dwt.internal.mozilla.nsIBinaryOutputStream;
|
|
2
|
|
3 import dwt.internal.mozilla.Common;
|
|
4 import dwt.internal.mozilla.nsID;
|
|
5 import dwt.internal.mozilla.nsISupports;
|
|
6
|
|
7 import dwt.internal.mozilla.nsIOutputStream;
|
|
8
|
|
9 const char[] NS_IBINARYOUTPUTSTREAM_IID_STR = "204ee610-8765-11d3-90cf-0040056a906e";
|
|
10
|
|
11 const nsIID NS_IBINARYOUTPUTSTREAM_IID=
|
|
12 {0x204ee610, 0x8765, 0x11d3,
|
|
13 [ 0x90, 0xcf, 0x00, 0x40, 0x05, 0x6a, 0x90, 0x6e ]};
|
|
14
|
|
15 interface nsIBinaryOutputStream : nsIOutputStream {
|
|
16
|
|
17 static const char[] IID_STR = NS_IBINARYOUTPUTSTREAM_IID_STR;
|
|
18 static const nsIID IID = NS_IBINARYOUTPUTSTREAM_IID;
|
|
19
|
|
20 extern(System):
|
|
21 nsresult SetOutputStream(nsIOutputStream aOutputStream);
|
|
22 nsresult WriteBoolean(PRBool aBoolean);
|
|
23 nsresult Write8(PRUint8 aByte);
|
|
24 nsresult Write16(PRUint16 a16);
|
|
25 nsresult Write32(PRUint32 a32);
|
|
26 nsresult Write64(PRUint64 a64);
|
|
27 nsresult WriteFloat(float aFloat);
|
|
28 nsresult WriteDouble(double aDouble);
|
|
29 nsresult WriteStringZ(char *aString);
|
|
30 nsresult WriteWStringZ(PRUnichar *aString);
|
|
31 nsresult WriteUtf8Z(PRUnichar *aString);
|
|
32 nsresult WriteBytes(char *aString, PRUint32 aLength);
|
|
33 nsresult WriteByteArray(PRUint8 *aBytes, PRUint32 aLength);
|
|
34
|
|
35 }
|
|
36
|