Changeset 262


Ignore:
Timestamp:
May 27, 2007, 3:33:43 PM (18 years ago)
Author:
NoWest
Message:

Stream及びFileStreamをIAsyncResultインターフェイス、WaitHandleクラスがそれぞれがSystem名前空間、System.Threading名前空間に入ったことに対応。
ただし、クラス名の頭に名前空間を付けただけで原因不明のバグが発生してコンパイラが落ちる現象が発生。要調査

Location:
Include/Classes/System/IO
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/IO/FileStream.ab

    r260 r262  
    227227
    228228Public
    229     Override Function BeginRead(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As IAsyncResult
    230         'TODO
    231     End Function
    232 
    233     Override Function BeginWrite(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As IAsyncResult
     229    Override Function BeginRead(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult
     230        'TODO
     231    End Function
     232
     233    Override Function BeginWrite(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult
    234234        'TODO
    235235    End Function
     
    242242/*  Dispose*/
    243243
    244     Override Sub EndRead(ByRef asyncResult As IAsyncResult)
    245         'TODO
    246     End Sub
    247 
    248     Override Sub EndWrite(ByRef asyncResult As IAsyncResult)
     244    Override Sub EndRead(ByRef asyncResult As System.IAsyncResult)
     245        'TODO
     246    End Sub
     247
     248    Override Sub EndWrite(ByRef asyncResult As System.IAsyncResult)
    249249        'TODO
    250250    End Sub
     
    358358Protected
    359359    /*非同期ファイル操作に必須だがどうやって実装しようか検討中*/
    360     Override Function CreateWaitHandle() As WaitHandle
     360    Override Function CreateWaitHandle() As System.Threading.WaitHandle
    361361'       Return Nothing
    362362    End Function
  • Include/Classes/System/IO/Stream.ab

    r252 r262  
    1 
    2 #require <Classes/System/misc.ab>
    31
    42Class Stream
     
    3937
    4038Public
    41     Virtual Function BeginRead(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As IAsyncResult:  End Function
    42     Virtual Function BeginWrite(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As IAsyncResult: End Function
     39    Virtual Function BeginRead(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult:   End Function
     40    Virtual Function BeginWrite(ByRef buffer[] As Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult:  End Function
    4341    Virtual Sub Close():    End Sub
    44     Virtual Function EndRead(ByRef asyncResult As IAsyncResult) As Long:    End Function
    45     Virtual Sub EndWrite(ByRef asyncResult As IAsyncResult):    End Sub
     42    Virtual Function EndRead(ByRef asyncResult As System.IAsyncResult) As Long: End Function
     43    Virtual Sub EndWrite(ByRef asyncResult As System.IAsyncResult): End Sub
    4644    Abstract Sub Flush()
    4745    Abstract Function Read(ByRef buffer[] As Byte, offset As Long, count As Long) As Long
     
    6563    End Sub
    6664Protected
    67     Virtual Function CreateWaitHandle() As WaitHandle:  End Function
     65    Virtual Function CreateWaitHandle() As System.Threading.WaitHandle: End Function
    6866End Class
  • Include/Classes/System/IO/misc.ab

    r128 r262  
    11
    2 TypeDef /* [Delegate] */ AsyncCallback = *Sub(ByRef ar As IAsyncResult)
     2TypeDef /* [Delegate] */ AsyncCallback = *Sub(ByRef ar As System.IAsyncResult)
    33
    44Enum SeekOrigin
Note: See TracChangeset for help on using the changeset viewer.