summaryrefslogtreecommitdiff
path: root/src/FileEntry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/FileEntry.h')
-rw-r--r--src/FileEntry.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/FileEntry.h b/src/FileEntry.h
index 722db7e0..849d9963 100644
--- a/src/FileEntry.h
+++ b/src/FileEntry.h
@@ -47,14 +47,14 @@ class FileEntry {
private:
std::string path;
std::deque<std::string> _uris;
- int64_t length;
- int64_t offset;
+ uint64_t length;
+ off_t offset;
bool extracted;
bool requested;
public:
FileEntry():length(0), offset(0), extracted(false), requested(false) {}
- FileEntry(const std::string& path, int64_t length, int64_t offset,
+ FileEntry(const std::string& path, uint64_t length, off_t offset,
const std::deque<std::string>& uris = std::deque<std::string>());
~FileEntry();
@@ -75,13 +75,13 @@ public:
void setPath(const std::string& path) { this->path = path; }
- int64_t getLength() const { return length; }
+ uint64_t getLength() const { return length; }
- void setLength(int64_t length) { this->length = length; }
+ void setLength(uint64_t length) { this->length = length; }
- int64_t getOffset() const { return offset; }
+ off_t getOffset() const { return offset; }
- void setOffset(int64_t offset) { this->offset = offset; }
+ void setOffset(off_t offset) { this->offset = offset; }
bool isExtracted() const { return extracted; }