Skip to content

Commit a67fd4f

Browse files
author
lind
committed
address comments
1 parent 2ff34c0 commit a67fd4f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/portable/executor_runner/open_file_by_fd.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

extension/data_loader/file_data_loader.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ namespace extension {
2727
class FileDataLoader final : public executorch::runtime::DataLoader {
2828
public:
2929
/**
30-
* Creates a new FileDataLoader that wraps the named file descriptor.
30+
* Creates a new FileDataLoader that wraps the named file descriptor, and the
31+
* ownership of the file descriptor is passed. This helper is used when ET is
32+
* running in a process that does not have access to the filesystem, and the
33+
* caller is able to open the file and pass the file descriptor.
3134
*
3235
* @param[in] file_descriptor_uri File descriptor with the prefix "fd:///",
3336
* followed by the file descriptor number.

0 commit comments

Comments
 (0)