Changeset 347 for trunk


Ignore:
Timestamp:
Sep 30, 2007, 12:25:49 AM (17 years ago)
Author:
NoWest
Message:

IDisposableインターフェイスを継承するようにしました。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/IO/Stream.ab

    r337 r347  
    44
    55Class Stream
     6    Inherits System.IDisposable
     7
    68Public 'Protected
    79    Sub Stream():   End Sub
     
    4042
    4143Public
    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
    44     Virtual Sub Close():    End Sub
     44    Virtual Function BeginRead(buffer As *Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult
     45        Read(buffer,offset,count)
     46    End Function
     47    Virtual Function BeginWrite(buffer As *Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult
     48        Write(buffer,offset,count)
     49    End Function
     50    Virtual Sub Close()
     51        This.Dispose()
     52    End Sub
    4553    Virtual Function EndRead(ByRef asyncResult As System.IAsyncResult) As Long: End Function
    4654    Virtual Sub EndWrite(ByRef asyncResult As System.IAsyncResult): End Sub
Note: See TracChangeset for help on using the changeset viewer.