| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 patch class _FileUtils { | 5 patch class _FileUtils { | 
| 6   /* patch */ static SendPort _newServicePort() native "File_NewServicePort"; | 6   /* patch */ static SendPort _newServicePort() native "File_NewServicePort"; | 
| 7 } | 7 } | 
| 8 | 8 | 
| 9 patch class _File { | 9 patch class _File { | 
| 10   /* patch */ static _exists(String name) native "File_Exists"; | 10   /* patch */ static _exists(String name) native "File_Exists"; | 
| 11   /* patch */ static _create(String name) native "File_Create"; | 11   /* patch */ static _create(String name) native "File_Create"; | 
| 12   /* patch */ static _delete(String name) native "File_Delete"; | 12   /* patch */ static _delete(String name) native "File_Delete"; | 
| 13   /* patch */ static _directory(String name) native "File_Directory"; | 13   /* patch */ static _directory(String name) native "File_Directory"; | 
| 14   /* patch */ static _lengthFromName(String name) native "File_LengthFromName"; | 14   /* patch */ static _lengthFromName(String name) native "File_LengthFromName"; | 
| 15   /* patch */ static _lastModified(String name) native "File_LastModified"; | 15   /* patch */ static _lastModified(String name) native "File_LastModified"; | 
| 16   /* patch */ static _open(String name, int mode) native "File_Open"; | 16   /* patch */ static _open(String name, int mode) native "File_Open"; | 
| 17   /* patch */ static int _openStdio(int fd) native "File_OpenStdio"; | 17   /* patch */ static int _openStdio(int fd) native "File_OpenStdio"; | 
| 18   /* patch */ static _fullPath(String name) native "File_FullPath"; | 18   /* patch */ static _fullPath(String name) native "File_FullPath"; | 
| 19 } | 19 } | 
| 20 | 20 | 
| 21 patch class _RandomAccessFile { | 21 patch class _RandomAccessFile { | 
| 22   /* patch */ static int _close(int id) native "File_Close"; | 22   /* patch */ static int _close(int id) native "File_Close"; | 
| 23   /* patch */ static _readByte(int id) native "File_ReadByte"; | 23   /* patch */ static _readByte(int id) native "File_ReadByte"; | 
|  | 24   /* patch */ static _read(int id, int bytes) native "File_Read"; | 
| 24   /* patch */ static _readList(int id, List<int> buffer, int offset, int bytes) | 25   /* patch */ static _readList(int id, List<int> buffer, int offset, int bytes) | 
| 25       native "File_ReadList"; | 26       native "File_ReadList"; | 
| 26   /* patch */ static _writeByte(int id, int value) native "File_WriteByte"; | 27   /* patch */ static _writeByte(int id, int value) native "File_WriteByte"; | 
| 27   /* patch */ static _writeList(int id, List<int> buffer, int offset, int bytes) | 28   /* patch */ static _writeList(int id, List<int> buffer, int offset, int bytes) | 
| 28       native "File_WriteList"; | 29       native "File_WriteList"; | 
| 29   /* patch */ static _position(int id) native "File_Position"; | 30   /* patch */ static _position(int id) native "File_Position"; | 
| 30   /* patch */ static _setPosition(int id, int position) | 31   /* patch */ static _setPosition(int id, int position) | 
| 31       native "File_SetPosition"; | 32       native "File_SetPosition"; | 
| 32   /* patch */ static _truncate(int id, int length) native "File_Truncate"; | 33   /* patch */ static _truncate(int id, int length) native "File_Truncate"; | 
| 33   /* patch */ static _length(int id) native "File_Length"; | 34   /* patch */ static _length(int id) native "File_Length"; | 
| 34   /* patch */ static _flush(int id) native "File_Flush"; | 35   /* patch */ static _flush(int id) native "File_Flush"; | 
| 35 } | 36 } | 
| OLD | NEW | 
|---|