OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "bin/io_natives.h" | 5 #include "bin/io_natives.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 V(File_Open, 2) \ | 38 V(File_Open, 2) \ |
39 V(File_Exists, 1) \ | 39 V(File_Exists, 1) \ |
40 V(File_Close, 1) \ | 40 V(File_Close, 1) \ |
41 V(File_ReadByte, 1) \ | 41 V(File_ReadByte, 1) \ |
42 V(File_WriteByte, 2) \ | 42 V(File_WriteByte, 2) \ |
43 V(File_Read, 2) \ | 43 V(File_Read, 2) \ |
44 V(File_ReadInto, 4) \ | 44 V(File_ReadInto, 4) \ |
45 V(File_WriteFrom, 4) \ | 45 V(File_WriteFrom, 4) \ |
46 V(File_Position, 1) \ | 46 V(File_Position, 1) \ |
47 V(File_SetPosition, 2) \ | 47 V(File_SetPosition, 2) \ |
48 V(File_SetTranslation, 2) \ | |
49 V(File_Truncate, 2) \ | 48 V(File_Truncate, 2) \ |
50 V(File_Length, 1) \ | 49 V(File_Length, 1) \ |
51 V(File_LengthFromPath, 1) \ | 50 V(File_LengthFromPath, 1) \ |
52 V(File_Stat, 1) \ | 51 V(File_Stat, 1) \ |
53 V(File_LastModified, 1) \ | 52 V(File_LastModified, 1) \ |
54 V(File_SetLastModified, 2) \ | 53 V(File_SetLastModified, 2) \ |
55 V(File_LastAccessed, 1) \ | 54 V(File_LastAccessed, 1) \ |
56 V(File_SetLastAccessed, 2) \ | 55 V(File_SetLastAccessed, 2) \ |
57 V(File_Flush, 1) \ | 56 V(File_Flush, 1) \ |
58 V(File_Lock, 4) \ | 57 V(File_Lock, 4) \ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 struct NativeEntries* entry = &(IOEntries[i]); | 192 struct NativeEntries* entry = &(IOEntries[i]); |
194 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 193 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
195 return reinterpret_cast<const uint8_t*>(entry->name_); | 194 return reinterpret_cast<const uint8_t*>(entry->name_); |
196 } | 195 } |
197 } | 196 } |
198 return NULL; | 197 return NULL; |
199 } | 198 } |
200 | 199 |
201 } // namespace bin | 200 } // namespace bin |
202 } // namespace dart | 201 } // namespace dart |
OLD | NEW |