mirror of
https://github.com/AxioDL/nod.git
synced 2025-12-08 13:14:59 +00:00
Compare commits
2 Commits
acdadaf963
...
ba0c2b7843
| Author | SHA1 | Date | |
|---|---|---|---|
| ba0c2b7843 | |||
|
|
221bc7c7f2 |
@@ -49,11 +49,12 @@ public:
|
||||
AthenaPartReadStream(std::unique_ptr<IPartReadStream>&& rs) : m_rs(std::move(rs)) {}
|
||||
|
||||
void seek(atInt64 off, athena::SeekOrigin origin) override {
|
||||
if (origin == athena::Begin)
|
||||
if (origin == athena::SeekOrigin::Begin) {
|
||||
m_rs->seek(off, SEEK_SET);
|
||||
else if (origin == athena::Current)
|
||||
} else if (origin == athena::SeekOrigin::Current) {
|
||||
m_rs->seek(off, SEEK_CUR);
|
||||
}
|
||||
}
|
||||
atUint64 position() const override { return m_rs->position(); }
|
||||
atUint64 length() const override { return 0; }
|
||||
atUint64 readUBytesToBuf(void* buf, atUint64 sz) override {
|
||||
|
||||
Reference in New Issue
Block a user