Directory entry. More...
#include <Filesystem.h>
Public Attributes | |
String | name |
File or directory name. More... | |
uint64_t | length |
Length of file. More... | |
time_t | last_modification_time {} |
Last modification time. More... | |
bool | is_dir {} |
Flag indicating if entry id a directory. More... | |
Private Member Functions | |
uint8_t | encoding_version () const override |
Returns encoding version. More... | |
size_t | encoded_length_internal () const override |
Returns internal serialized length. More... | |
void | encode_internal (uint8_t **bufp) const override |
Writes serialized representation of object to a buffer. More... | |
void | decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override |
Reads serialized representation of object from a buffer. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Hypertable::Serializable | |
virtual size_t | encoded_length () const |
Returns serialized object length. More... | |
virtual void | encode (uint8_t **bufp) const |
Writes serialized representation of object to a buffer. More... | |
virtual void | decode (const uint8_t **bufp, size_t *remainp) |
Reads serialized representation of object from a buffer. More... | |
Directory entry.
Definition at line 92 of file Filesystem.h.
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized encoding remaining |
Implements Hypertable::Serializable.
Definition at line 61 of file Filesystem.cc.
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
This function is to be overridden by derived classes and should encode the object per-se.
bufp | Address of destination buffer pointer (advanced by call) |
Implements Hypertable::Serializable.
Definition at line 54 of file Filesystem.cc.
|
overrideprivatevirtual |
Returns internal serialized length.
This function is to be overridden by derived classes and should return the length of the the serialized object per-se.
Implements Hypertable::Serializable.
Definition at line 50 of file Filesystem.cc.
|
overrideprivatevirtual |
Returns encoding version.
Implements Hypertable::Serializable.
Definition at line 46 of file Filesystem.cc.
bool Hypertable::Filesystem::Dirent::is_dir {} |
Flag indicating if entry id a directory.
Definition at line 102 of file Filesystem.h.
time_t Hypertable::Filesystem::Dirent::last_modification_time {} |
Last modification time.
Definition at line 100 of file Filesystem.h.
uint64_t Hypertable::Filesystem::Dirent::length |
Length of file.
Definition at line 98 of file Filesystem.h.
String Hypertable::Filesystem::Dirent::name |
File or directory name.
Definition at line 96 of file Filesystem.h.