OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 part of os; | 5 part of os; |
6 | 6 |
7 const int SHUT_RD = 0; | 7 const int SHUT_RD = 0; |
8 const int SHUT_WR = 1; | 8 const int SHUT_WR = 1; |
9 const int SHUT_RDWR = 2; | 9 const int SHUT_RDWR = 2; |
10 | 10 |
11 const int SEEK_SET = 0; | 11 const int SEEK_SET = 0; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 String second = _bytes[i * 2 + 1].toRadixString(16); | 121 String second = _bytes[i * 2 + 1].toRadixString(16); |
122 if (second.length == 1) { | 122 if (second.length == 1) { |
123 second = "0$second"; | 123 second = "0$second"; |
124 } | 124 } |
125 parts[i] = "$first$second"; | 125 parts[i] = "$first$second"; |
126 } | 126 } |
127 return parts.join(":"); | 127 return parts.join(":"); |
128 } | 128 } |
129 } | 129 } |
130 } | 130 } |
OLD | NEW |