ReXGlue SDK
Loading...
Searching...
No Matches
file_stat.h File Reference
#include <optional>
#include <string>
#include <rex/bit.h>
#include <rex/types.h>

Go to the source code of this file.

Classes

struct  rex::filesystem::FileStat
struct  rex::filesystem::FileTimes
struct  rex::filesystem::VolumeStat

Namespaces

namespace  rex

Enumerations

enum class  rex::filesystem::FileAttributes : u16 {
  kNone = 0x0000 , kReadOnly = 0x0001 , kHidden = 0x0002 , kSystem = 0x0004 ,
  kDirectory = 0x0010 , kArchive = 0x0020 , kDevice = 0x0040 , kNormal = 0x0080 ,
  kTemporary = 0x0100 , kCompressed = 0x0800 , kEncrypted = 0x4000
}

Functions

template<FlagsEnum E>
constexpr bool rex::filesystem::HasFlags (E value, E flags)
template<FlagsEnum E>
constexpr E rex::filesystem::operator| (E lhs, E rhs)
template<FlagsEnum E>
constexpr E rex::filesystem::operator& (E lhs, E rhs)
template<FlagsEnum E>
constexpr E rex::filesystem::operator^ (E lhs, E rhs)
template<FlagsEnum E>
constexpr E rex::filesystem::operator~ (E value)
template<FlagsEnum E>
constexpr E & rex::filesystem::operator|= (E &lhs, E rhs)
template<FlagsEnum E>
constexpr E & rex::filesystem::operator&= (E &lhs, E rhs)
template<FlagsEnum E>
constexpr E & rex::filesystem::operator^= (E &lhs, E rhs)

Variables

constexpr u32 rex::filesystem::kBytesPerSector = 0x200

Detailed Description

License
BSD 3-Clause License See LICENSE file in the project root for full license text.

Enumeration Type Documentation

◆ FileAttributes

enum class rex::filesystem::FileAttributes : u16
strong

NT file attribute bits.

Enumerator
kNormal 

Normal file with no other attribute.

Function Documentation

◆ HasFlags()

template<FlagsEnum E>
bool rex::HasFlags ( E value,
E flags )
nodiscardconstexpr

Reports whether a set holds every flag of another set.

◆ operator&=()

template<FlagsEnum E>
E & rex::operator&= ( E & lhs,
E rhs )
constexpr

Keeps only the flags of a set that another set holds, in place.

Returns
lhs.

◆ operator^=()

template<FlagsEnum E>
E & rex::operator^= ( E & lhs,
E rhs )
constexpr

Toggles flags of a set in place.

Returns
lhs.

◆ operator|=()

template<FlagsEnum E>
E & rex::operator|= ( E & lhs,
E rhs )
constexpr

Adds flags to a set in place.

Returns
lhs.