Changeset 337 for trunk/Include/Classes/System/IO
- Timestamp:
- Sep 22, 2007, 12:32:25 PM (17 years ago)
- Location:
- trunk/Include/Classes/System/IO
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/Directory.ab
r327 r337 26 26 End Function 27 27 28 Static Function GetAccessControl(path As String, includeSections As AccessControlSections) As DirectorySecurity28 Static Function GetAccessControl(path As String, includeSections As System.Security.AccessControl.AccessControlSections) As DirectorySecurity 29 29 End Function 30 30 -
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 -
trunk/Include/Classes/System/IO/Stream.ab
r271 r337 46 46 Virtual Sub EndWrite(ByRef asyncResult As System.IAsyncResult): End Sub 47 47 Abstract Sub Flush() 48 Abstract Function Read( ByRef buffer[] AsByte, offset As Long, count As Long) As Long48 Abstract Function Read(buffer As *Byte, offset As Long, count As Long) As Long 49 49 50 50 Virtual Function ReadByte() As Long 51 51 Dim b As Byte 52 Dim ret = Read( b, 0, 1)52 Dim ret = Read(VarPtr(b), 0, 1) 53 53 If ret <> 0 Then 54 54 Return b … … 60 60 Abstract Function Seek(offset As Int64, origin As SeekOrigin) As Long 61 61 Abstract Sub SetLength(value As Int64) 62 Abstract Sub Write( ByRef buffer[] AsByte, offset As Long, count As Long)62 Abstract Sub Write(buffer As *Byte, offset As Long, count As Long) 63 63 64 64 Virtual Sub WriteByte(b As Byte) 65 Write( b, 0, 1)65 Write(VarPtr(b), 0, 1) 66 66 End Sub 67 67 Protected
Note:
See TracChangeset
for help on using the changeset viewer.