summaryrefslogtreecommitdiff
path: root/src/u.hh
blob: 439d6dca6a49f9f5e5b27c74842a75fd4715fa9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef U_HH
#define U_HH

#include <cstdint>

namespace u {

enum class ReadError : uint8_t {
  Invalid,     // Invalid sequence
  End,         // At end (it == end)
  Incomplete,  // Too few bytes
};

enum class ReadErrorReplace : uint8_t {
  End,         // At end (it == end)
  Incomplete,  // Too few bytes
};

}  // namespace u

#endif  // U_HH