Changeset 337 for trunk/Include/Classes/System/IO/FileStream.ab
- Timestamp:
- Sep 22, 2007, 12:32:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/FileStream.ab
r336 r337 297 297 End Sub 298 298 299 Override Function Read( ByRef buffer[] AsByte, offset As Long, count As Long) As Long299 Override Function Read( buffer As *Byte, offset As Long, count As Long) As Long 300 300 If This.CanRead() Then 301 301 Dim ret As DWord … … 316 316 End Function 317 317 318 Override Function ReadByte() As Long319 Dim b As Byte320 Dim ret = Read(b, 0, 1)321 If ret <> 0 Then322 Return b As Long323 Else324 Return -1325 End If326 End Function327 318 /* ReferenceEquals*/ 328 319 … … 388 379 End Sub 389 380 390 Override Sub Write( ByRef buffer[] AsByte, offset As Long, count As Long)381 Override Sub Write(buffer As *Byte, offset As Long, count As Long) 391 382 If This.CanWrite() Then 392 383 Dim ret As DWord … … 405 396 End Sub 406 397 407 Override Sub WriteByte(b As Byte)408 Write(b, 0, 1)409 End Sub410 411 398 Protected 412 399 Override Function CreateWaitHandle() As System.Threading.WaitHandle
Note:
See TracChangeset
for help on using the changeset viewer.