comparison dwt/internal/mozilla/nsIBinaryOutputStream.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
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 extern(System)
16
17 interface nsIBinaryOutputStream : nsIOutputStream {
18
19 static const char[] IID_STR = NS_IBINARYOUTPUTSTREAM_IID_STR;
20 static const nsIID IID = NS_IBINARYOUTPUTSTREAM_IID;
21
22 nsresult SetOutputStream(nsIOutputStream aOutputStream);
23 nsresult WriteBoolean(PRBool aBoolean);
24 nsresult Write8(PRUint8 aByte);
25 nsresult Write16(PRUint16 a16);
26 nsresult Write32(PRUint32 a32);
27 nsresult Write64(PRUint64 a64);
28 nsresult WriteFloat(float aFloat);
29 nsresult WriteDouble(double aDouble);
30 nsresult WriteStringZ(char *aString);
31 nsresult WriteWStringZ(PRUnichar *aString);
32 nsresult WriteUtf8Z(PRUnichar *aString);
33 nsresult WriteBytes(char *aString, PRUint32 aLength);
34 nsresult WriteByteArray(PRUint8 *aBytes, PRUint32 aLength);
35
36 }
37