File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2222#include < executorch/runtime/core/error.h>
2323#include < executorch/runtime/core/result.h>
2424#include < executorch/runtime/platform/log.h>
25+ #include < charconv>
2526
2627// Some platforms (e.g. Xtensa) do not support pread() that we use to read the
2728// file at different offsets simultaneously from multiple threads not affecting
@@ -98,8 +99,12 @@ Result<int> getFDFromUri(const char* file_descriptor_uri) {
9899 fd_without_prefix[fd_len] = ' \0 ' ;
99100
100101 // check if remaining fd string is a valid integer
101- int fd = ::atoi (fd_without_prefix);
102- return fd;
102+ // int fd = strtol(fd_without_prefix, NULL, 10);
103+ // int fd = ::atoi(fd_without_prefix);
104+ // int fd = parse_int(fd_without_prefix);
105+ // int fd;
106+ // std::from_chars(fd_without_prefix, fd_without_prefix + fd_len, fd);
107+ return 0 ;
103108}
104109
105110Result<FileDataLoader> FileDataLoader::fromFileDescriptor (
You can’t perform that action at this time.
0 commit comments