[271] | 1 | Namespace System
|
---|
| 2 | Namespace IO
|
---|
[111] | 3 |
|
---|
[271] | 4 |
|
---|
[112] | 5 | Class Stream
|
---|
[119] | 6 | Public 'Protected
|
---|
[115] | 7 | Sub Stream(): End Sub
|
---|
[114] | 8 | Public
|
---|
[119] | 9 | Virtual Sub ~Stream()
|
---|
[248] | 10 | This.Close()
|
---|
[119] | 11 | End Sub
|
---|
| 12 | Public
|
---|
| 13 | Abstract Function CanRead() As Boolean
|
---|
| 14 | Abstract Function CanSeek() As Boolean
|
---|
[111] | 15 |
|
---|
[119] | 16 | Virtual Function CanTimeout() As Boolean
|
---|
| 17 | Return True
|
---|
| 18 | End Function
|
---|
| 19 |
|
---|
| 20 | Abstract Function CanWrite() As Boolean
|
---|
| 21 | Abstract Function Length() As Int64
|
---|
| 22 | Abstract Sub Position(value As Int64)
|
---|
| 23 | Abstract Function Position() As Int64
|
---|
| 24 |
|
---|
| 25 | Virtual Sub ReadTimeout(value As Long)
|
---|
| 26 | ' Throw InvalidOperationException
|
---|
| 27 | End Sub
|
---|
| 28 |
|
---|
| 29 | Virtual Function ReadTimeout() As Long
|
---|
| 30 | ' Throw InvalidOperationException
|
---|
| 31 | End Function
|
---|
| 32 |
|
---|
| 33 | Virtual Sub WriteTimeout(value As Long)
|
---|
| 34 | ' Throw InvalidOperationException
|
---|
| 35 | End Sub
|
---|
| 36 |
|
---|
| 37 | Virtual Function WriteTimeout() As Long
|
---|
| 38 | ' Throw InvalidOperationException
|
---|
| 39 | End Function
|
---|
| 40 |
|
---|
[112] | 41 | Public
|
---|
[262] | 42 | Virtual Function BeginRead(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult: End Function
|
---|
| 43 | Virtual Function BeginWrite(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult: End Function
|
---|
[112] | 44 | Virtual Sub Close(): End Sub
|
---|
[262] | 45 | Virtual Function EndRead(ByRef asyncResult As System.IAsyncResult) As Long: End Function
|
---|
| 46 | Virtual Sub EndWrite(ByRef asyncResult As System.IAsyncResult): End Sub
|
---|
[119] | 47 | Abstract Sub Flush()
|
---|
| 48 | Abstract Function Read(ByRef buffer[] As Byte, offset As Long, count As Long) As Long
|
---|
[112] | 49 |
|
---|
[119] | 50 | Virtual Function ReadByte() As Long
|
---|
| 51 | Dim b As Byte
|
---|
[252] | 52 | Dim ret = Read(b, 0, 1)
|
---|
[119] | 53 | If ret <> 0 Then
|
---|
| 54 | Return b
|
---|
| 55 | Else
|
---|
| 56 | Return -1
|
---|
| 57 | End If
|
---|
| 58 | End Function
|
---|
| 59 |
|
---|
| 60 | Abstract Function Seek(offset As Int64, origin As SeekOrigin) As Long
|
---|
[248] | 61 | Abstract Sub SetLength(value As Int64)
|
---|
[119] | 62 | Abstract Sub Write(ByRef buffer[] As Byte, offset As Long, count As Long)
|
---|
| 63 |
|
---|
| 64 | Virtual Sub WriteByte(b As Byte)
|
---|
[252] | 65 | Write(b, 0, 1)
|
---|
[119] | 66 | End Sub
|
---|
[112] | 67 | Protected
|
---|
[262] | 68 | Virtual Function CreateWaitHandle() As System.Threading.WaitHandle: End Function
|
---|
[112] | 69 | End Class
|
---|
[271] | 70 |
|
---|
| 71 |
|
---|
| 72 | End Namespace
|
---|
| 73 | End Namespace
|
---|