#include <fileinfo.hpp>
|
const std::string | name |
| The filename.
|
|
const size_t | size |
| The size of the file (in bytes)
|
|
const std::vector< std::string > | pieces |
| The list of SHA1 hashes of the pieces of the file Each piece is should be block_size bytes long.
|
|
const std::string | hash |
| The hash of the file Equivalent to the hash of the concatenation of the pieces.
|
|
◆ FileInfo()
FileInfo::FileInfo |
( |
const std::string & | name, |
|
|
size_t | size, |
|
|
const std::vector< std::string > & | pieces, |
|
|
const std::string & | hash ) |
|
inline |
◆ from_string()
static FileInfo FileInfo::from_string |
( |
const std::string & | str | ) |
|
|
inlinestatic |
◆ to_string()
std::string FileInfo::to_string |
( |
| ) |
const |
|
inline |
◆ operator==
◆ hash
const std::string FileInfo::hash |
The hash of the file Equivalent to the hash of the concatenation of the pieces.
◆ name
const std::string FileInfo::name |
◆ pieces
const std::vector<std::string> FileInfo::pieces |
The list of SHA1 hashes of the pieces of the file Each piece is should be block_size bytes long.
◆ size
const size_t FileInfo::size |
The size of the file (in bytes)
The documentation for this class was generated from the following file: