projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: use std::vector and extract utf8_to_utf16().
[dcpomatic.git]
/
src
/
lib
/
file_group.h
diff --git
a/src/lib/file_group.h
b/src/lib/file_group.h
index 693bf89baeb800757fa61acfdeccb243eeb02ae5..aac72c2288ef1d394bd681059c8d2e07adfdbf3f 100644
(file)
--- a/
src/lib/file_group.h
+++ b/
src/lib/file_group.h
@@
-49,8
+49,18
@@
public:
void set_paths (std::vector<boost::filesystem::path> const &);
void set_paths (std::vector<boost::filesystem::path> const &);
+ struct Result {
+ Result(int bytes_read_, bool eof_)
+ : bytes_read(bytes_read_)
+ , eof(eof_)
+ {}
+
+ int bytes_read = 0;
+ bool eof = false;
+ };
+
int64_t seek (int64_t, int) const;
int64_t seek (int64_t, int) const;
-
in
t read (uint8_t*, int) const;
+
Resul
t read (uint8_t*, int) const;
int64_t length () const;
private:
int64_t length () const;
private: