29std::string FileLoader::SanitizePath(
const std::string& url) {
30 return SanitizeURIEscapedCharacters(url);
33bool FileLoader::ReadFileToString(
const std::string&
path,
37 const char* cpath =
path.c_str();
38 const int offset = (cpath[0] ==
'/') ? 1 : 0;
43std::pair<uint8_t*, intptr_t> FileLoader::ReadFileToBytes(
44 const std::string&
path) {
47 const char* cpath =
path.c_str();
48 const int offset = (cpath[0] ==
'/') ? 1 : 0;
static const char kFileURLPrefix[]
static const size_t kFileURLPrefixLength
static const std::string kPathSeparator
bool ReadFileDescriptorToString(int fd, std::string *result)
bool ReadFileToString(const std::string &path, std::string *result)
std::pair< uint8_t *, intptr_t > ReadFileToBytes(const std::string &path)
std::pair< uint8_t *, intptr_t > ReadFileDescriptorToBytes(int fd)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path