Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Side by Side Diff: sdk/lib/io/common.dart

Issue 15018011: dart:io | Add FileSystemEntity.stat() and FileStat class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Windows failures. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 part of dart.io; 5 part of dart.io;
6 6
7 // Constants used when working with native ports. 7 // Constants used when working with native ports.
8 // These must match the constants in runtime/bin/dartutils.h class CObject.
8 const int _SUCCESS_RESPONSE = 0; 9 const int _SUCCESS_RESPONSE = 0;
9 const int _ILLEGAL_ARGUMENT_RESPONSE = 1; 10 const int _ILLEGAL_ARGUMENT_RESPONSE = 1;
10 const int _OSERROR_RESPONSE = 2; 11 const int _OSERROR_RESPONSE = 2;
11 const int _FILE_CLOSED_RESPONSE = 3; 12 const int _FILE_CLOSED_RESPONSE = 3;
12 13
13 const int _ERROR_RESPONSE_ERROR_TYPE = 0; 14 const int _ERROR_RESPONSE_ERROR_TYPE = 0;
14 const int _OSERROR_RESPONSE_ERROR_CODE = 1; 15 const int _OSERROR_RESPONSE_ERROR_CODE = 1;
15 const int _OSERROR_RESPONSE_MESSAGE = 2; 16 const int _OSERROR_RESPONSE_MESSAGE = 2;
16 17
17 // Functions used to receive exceptions from native ports. 18 // Functions used to receive exceptions from native ports.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 class _BufferUtils { 129 class _BufferUtils {
129 // Check if a List is a builtin VM List type. Returns true 130 // Check if a List is a builtin VM List type. Returns true
130 // if the List is a builtin VM List type and false if it is 131 // if the List is a builtin VM List type and false if it is
131 // a user defined List type. 132 // a user defined List type.
132 external static bool _isBuiltinList(List buffer); 133 external static bool _isBuiltinList(List buffer);
133 } 134 }
134 135
135 class _IOCrypto { 136 class _IOCrypto {
136 external static Uint8List getRandomBytes(int count); 137 external static Uint8List getRandomBytes(int count);
137 } 138 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698