aboutsummaryrefslogtreecommitdiff
path: root/kapi/kapi/filesystem/seek.hpp
blob: f1006f312b6acaeef34b655ae7ead198211977fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef TEACHOS_KAPI_FILESYSTEM_SEEK_HPP
#define TEACHOS_KAPI_FILESYSTEM_SEEK_HPP

// IWYU pragma: private, include <kapi/filesystem.hpp>

namespace kapi::filesystem
{

  //! The origin for a seek operation.
  enum struct seek_origin
  {
    //! Seek from the beginning of the file.
    beginning,
    //! Seek from the current position.
    current_position,
    //! Seek from the end of the file.
    end,
  };

  enum struct seek_direction
  {
    //! seek forward from the origin.
    forward,
    //! seek backward from the origin.
    backward,
  };

}  // namespace kapi::filesystem

#endif