Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsIBinaryInputStream.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 module org.eclipse.swt.internal.mozilla.nsIBinaryInputStream; | |
2 | |
3 import org.eclipse.swt.internal.mozilla.Common; | |
4 import org.eclipse.swt.internal.mozilla.nsID; | |
5 import org.eclipse.swt.internal.mozilla.nsISupports; | |
6 | |
7 import org.eclipse.swt.internal.mozilla.nsIInputStream; | |
8 import org.eclipse.swt.internal.mozilla.nsStringAPI; | |
9 | |
10 const char[] NS_IBINARYINPUTSTREAM_IID_STR = "7b456cb0-8772-11d3-90cf-0040056a906e"; | |
11 | |
12 const nsIID NS_IBINARYINPUTSTREAM_IID= | |
13 {0x7b456cb0, 0x8772, 0x11d3, | |
14 [ 0x90, 0xcf, 0x00, 0x40, 0x05, 0x6a, 0x90, 0x6e ]}; | |
15 | |
16 interface nsIBinaryInputStream : nsIInputStream { | |
17 | |
18 static const char[] IID_STR = NS_IBINARYINPUTSTREAM_IID_STR; | |
19 static const nsIID IID = NS_IBINARYINPUTSTREAM_IID; | |
20 | |
21 extern(System): | |
22 nsresult SetInputStream(nsIInputStream aInputStream); | |
23 nsresult ReadBoolean(PRBool *_retval); | |
24 nsresult Read8(PRUint8 *_retval); | |
25 nsresult Read16(PRUint16 *_retval); | |
26 nsresult Read32(PRUint32 *_retval); | |
27 nsresult Read64(PRUint64 *_retval); | |
28 nsresult ReadFloat(float *_retval); | |
29 nsresult ReadDouble(double *_retval); | |
30 nsresult ReadCString(nsACString * _retval); | |
31 nsresult ReadString(nsAString * _retval); | |
32 nsresult ReadBytes(PRUint32 aLength, char **aString); | |
33 nsresult ReadByteArray(PRUint32 aLength, PRUint8 **aBytes); | |
34 | |
35 } | |
36 |