| 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 _File { | 5 @patch class _File { |
| 6 @patch static _exists(String path) native "File_Exists"; | 6 @patch static _exists(String path) native "File_Exists"; |
| 7 @patch static _create(String path) native "File_Create"; | 7 @patch static _create(String path) native "File_Create"; |
| 8 @patch static _createLink(String path, String target) | 8 @patch static _createLink(String path, String target) |
| 9 native "File_CreateLink"; | 9 native "File_CreateLink"; |
| 10 @patch static _linkTarget(String path) native "File_LinkTarget"; | 10 @patch static _linkTarget(String path) native "File_LinkTarget"; |
| 11 @patch static _deleteNative(String path) native "File_Delete"; | 11 @patch static _deleteNative(String path) native "File_Delete"; |
| 12 @patch static _deleteLinkNative(String path) native "File_DeleteLink"; | 12 @patch static _deleteLinkNative(String path) native "File_DeleteLink"; |
| 13 @patch static _rename(String oldPath, String newPath) | 13 @patch static _rename(String oldPath, String newPath) |
| 14 native "File_Rename"; | 14 native "File_Rename"; |
| 15 @patch static _renameLink(String oldPath, String newPath) | 15 @patch static _renameLink(String oldPath, String newPath) |
| 16 native "File_RenameLink"; | 16 native "File_RenameLink"; |
| 17 @patch static _copy(String oldPath, String newPath) native "File_Copy"; | 17 @patch static _copy(String oldPath, String newPath) native "File_Copy"; |
| 18 @patch static _lengthFromPath(String path) native "File_LengthFromPath"; | 18 @patch static _lengthFromPath(String path) native "File_LengthFromPath"; |
| 19 @patch static _lastModified(String path) native "File_LastModified"; | 19 @patch static _lastModified(String path) native "File_LastModified"; |
| 20 @patch static _setLastModified(String path, int millis) |
| 21 native "File_SetLastModified"; |
| 22 @patch static _lastAccessed(String path) native "File_LastAccessed"; |
| 23 @patch static _setLastAccessed(String path, int millis) |
| 24 native "File_SetLastAccessed"; |
| 20 @patch static _open(String path, int mode) native "File_Open"; | 25 @patch static _open(String path, int mode) native "File_Open"; |
| 21 @patch static int _openStdio(int fd) native "File_OpenStdio"; | 26 @patch static int _openStdio(int fd) native "File_OpenStdio"; |
| 22 } | 27 } |
| 23 | 28 |
| 24 | 29 |
| 25 @patch class _RandomAccessFileOps { | 30 @patch class _RandomAccessFileOps { |
| 26 @patch factory _RandomAccessFileOps(int pointer) | 31 @patch factory _RandomAccessFileOps(int pointer) |
| 27 => new _RandomAccessFileOpsImpl(pointer); | 32 => new _RandomAccessFileOpsImpl(pointer); |
| 28 } | 33 } |
| 29 | 34 |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 void _pathWatchedEnd() { | 380 void _pathWatchedEnd() { |
| 376 _subscription.cancel(); | 381 _subscription.cancel(); |
| 377 _controller.close(); | 382 _controller.close(); |
| 378 } | 383 } |
| 379 } | 384 } |
| 380 | 385 |
| 381 | 386 |
| 382 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { | 387 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { |
| 383 return new Uint8List.view(source.buffer, offsetInBytes, length); | 388 return new Uint8List.view(source.buffer, offsetInBytes, length); |
| 384 } | 389 } |
| OLD | NEW |