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 #ifndef RUNTIME_BIN_DARTUTILS_H_ | 5 #ifndef RUNTIME_BIN_DARTUTILS_H_ |
6 #define RUNTIME_BIN_DARTUTILS_H_ | 6 #define RUNTIME_BIN_DARTUTILS_H_ |
7 | 7 |
8 #include "bin/isolate_data.h" | 8 #include "bin/isolate_data.h" |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 #include "include/dart_native_api.h" | 10 #include "include/dart_native_api.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 int64_t val); | 118 int64_t val); |
119 static Dart_Handle SetStringField(Dart_Handle handle, | 119 static Dart_Handle SetStringField(Dart_Handle handle, |
120 const char* name, | 120 const char* name, |
121 const char* val); | 121 const char* val); |
122 static bool IsDartSchemeURL(const char* url_name); | 122 static bool IsDartSchemeURL(const char* url_name); |
123 static bool IsDartExtensionSchemeURL(const char* url_name); | 123 static bool IsDartExtensionSchemeURL(const char* url_name); |
124 static bool IsDartIOLibURL(const char* url_name); | 124 static bool IsDartIOLibURL(const char* url_name); |
125 static bool IsDartBuiltinLibURL(const char* url_name); | 125 static bool IsDartBuiltinLibURL(const char* url_name); |
126 static bool IsHttpSchemeURL(const char* url_name); | 126 static bool IsHttpSchemeURL(const char* url_name); |
127 static const char* RemoveScheme(const char* url); | 127 static const char* RemoveScheme(const char* url); |
128 static char* RemoveFilename(const char* url); | |
siva
2016/11/02 23:48:38
Would File::DirName be a more appropriate implemen
Cutch
2016/11/03 17:45:34
+1.
| |
128 static void* MapExecutable(const char* name, intptr_t* file_len); | 129 static void* MapExecutable(const char* name, intptr_t* file_len); |
129 static void* OpenFile(const char* name, bool write); | 130 static void* OpenFile(const char* name, bool write); |
130 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); | 131 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); |
131 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); | 132 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); |
132 static void CloseFile(void* stream); | 133 static void CloseFile(void* stream); |
133 static bool EntropySource(uint8_t* buffer, intptr_t length); | 134 static bool EntropySource(uint8_t* buffer, intptr_t length); |
134 static Dart_Handle ReadStringFromFile(const char* filename); | 135 static Dart_Handle ReadStringFromFile(const char* filename); |
135 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length); | 136 static Dart_Handle MakeUint8Array(const uint8_t* buffer, intptr_t length); |
136 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, | 137 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, |
137 Dart_Handle library, | 138 Dart_Handle library, |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
680 bool is_typed_data_; | 681 bool is_typed_data_; |
681 | 682 |
682 DISALLOW_ALLOCATION(); | 683 DISALLOW_ALLOCATION(); |
683 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer); | 684 DISALLOW_COPY_AND_ASSIGN(ScopedMemBuffer); |
684 }; | 685 }; |
685 | 686 |
686 } // namespace bin | 687 } // namespace bin |
687 } // namespace dart | 688 } // namespace dart |
688 | 689 |
689 #endif // RUNTIME_BIN_DARTUTILS_H_ | 690 #endif // RUNTIME_BIN_DARTUTILS_H_ |
OLD | NEW |