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 part of "dart:io"; | 5 part of "io.dart"; |
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 // These must match the constants in runtime/bin/dartutils.h class CObject. |
9 const int _SUCCESS_RESPONSE = 0; | 9 const int _SUCCESS_RESPONSE = 0; |
10 const int _ILLEGAL_ARGUMENT_RESPONSE = 1; | 10 const int _ILLEGAL_ARGUMENT_RESPONSE = 1; |
11 const int _OSERROR_RESPONSE = 2; | 11 const int _OSERROR_RESPONSE = 2; |
12 const int _FILE_CLOSED_RESPONSE = 3; | 12 const int _FILE_CLOSED_RESPONSE = 3; |
13 | 13 |
14 const int _ERROR_RESPONSE_ERROR_TYPE = 0; | 14 const int _ERROR_RESPONSE_ERROR_TYPE = 0; |
15 const int _OSERROR_RESPONSE_ERROR_CODE = 1; | 15 const int _OSERROR_RESPONSE_ERROR_CODE = 1; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 newBuffer[i] = value; | 111 newBuffer[i] = value; |
112 j++; | 112 j++; |
113 } | 113 } |
114 return new _BufferAndStart(newBuffer, 0); | 114 return new _BufferAndStart(newBuffer, 0); |
115 } | 115 } |
116 | 116 |
117 class _IOCrypto { | 117 class _IOCrypto { |
118 external static Uint8List getRandomBytes(int count); | 118 external static Uint8List getRandomBytes(int count); |
119 } | 119 } |
OLD | NEW |