master
h 21 lines 343 Bytes
Raw
1 // Copyright (C) Microsoft Corporation. All rights reserved.
2 #pragma once
3
4 namespace p9fs {
5
6 class DirectoryEnumerator final
7 {
8 public:
9 DirectoryEnumerator(int fd);
10 ~DirectoryEnumerator();
11
12 struct dirent* Next();
13 void Seek(long offset);
14 int Fd();
15
16 private:
17 DIR* m_Dir{};
18 long m_LastOffset{};
19 };
20
21 } // namespace p9fs