Changeset 348
- Timestamp:
- Sep 30, 2007, 12:26:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/FileStream.ab
r339 r348 243 243 244 244 Public 245 Override Function BeginRead( ByRef buffer[] AsByte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult245 Override Function BeginRead(buffer As *Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult 246 246 If This.IsAsync() Then 247 247 Else … … 250 250 End Function 251 251 252 Override Function BeginWrite( ByRef buffer[] AsByte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult252 Override Function BeginWrite(buffer As *Byte, offset As Long, count As Long, callback As AsyncCallback, state As Object) As System.IAsyncResult 253 253 If This.IsAsync() Then 254 254 Else … … 258 258 259 259 Override Sub Close() 260 CloseHandle(This.handle)260 This.Dispose() 261 261 End Sub 262 262 263 263 /* CreateObjRef*/ 264 /* Dispose*/ 264 265 Override Sub Dispose() 266 CloseHandle(InterlockedExchangePointer(VarPtr(This.handle),NULL)) 267 End Sub 265 268 266 269 Override Function EndRead(ByRef asyncResult As System.IAsyncResult) As Long … … 270 273 Override Sub EndWrite(ByRef asyncResult As System.IAsyncResult) 271 274 'TODO 272 End Sub275 End Function 273 276 274 277 /* Equals*/ … … 342 345 seek.LowPart=LODWORD(offset) 343 346 seek.HighPart=HIDWORD(offset) 344 If seek.HighPart=0 And offset<0 Then seek.LowPart=-seek.LowPart345 347 Select Case origin 346 348 Case SeekOrigin.Begin … … 396 398 End Sub 397 399 400 398 401 Protected 399 402 Override Function CreateWaitHandle() As System.Threading.WaitHandle
Note:
See TracChangeset
for help on using the changeset viewer.