| 1 |
module dwt.internal.mozilla.nsIBinaryInputStream; |
|---|
| 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.nsIInputStream; |
|---|
| 8 |
import dwt.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 |
} |
|---|