|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
6 #ifndef swcdb_fs_Dirent_h
7 #define swcdb_fs_Dirent_h
14 namespace SWC {
namespace FS {
23 Dirent(
const char* s, int64_t mod_time,
bool a_is_dir, uint64_t a_length)
30 :
name(std::move(other.name)),
46 name = std::move(other.name);
84 void decode(
const uint8_t** bufp,
size_t* remainp) {
98 #ifdef SWC_IMPL_SOURCE
103 #endif // swcdb_fs_Dirent_h
SWC_CAN_INLINE Dirent(const char *s, int64_t mod_time, bool a_is_dir, uint64_t a_length)
Dirent & operator=(const Dirent &)=delete
constexpr SWC_CAN_INLINE size_t encoded_length_bytes(size_t len) noexcept
std::string to_string() const
bool is_dir
Whether a directory.
SWC_CAN_INLINE void encode_bytes(uint8_t **bufp, const void *data, size_t len)
constexpr SWC_CAN_INLINE void encode_bool(uint8_t **bufp, bool bval) noexcept
int64_t last_modification_time
Last modification time.
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE Dirent(const Dirent &other)
SWC_CAN_INLINE void decode(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE bool decode_bool(const uint8_t **bufp, size_t *remainp)
std::string name
File or Directory name.
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
SWC_CAN_INLINE Dirent & operator=(Dirent &&other) noexcept
Core::Vector< Dirent > DirentList
SWC_CAN_INLINE Dirent() noexcept
SWC_CAN_INLINE std::string decode_bytes_string(const uint8_t **bufp, size_t *remainp)
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
uint64_t length
Length of file.
SWC_CAN_INLINE Dirent(Dirent &&other) noexcept
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
SWC_CAN_INLINE void encode(uint8_t **bufp) const
SWC_CAN_INLINE size_t encoded_length() const noexcept