diff options
author | Ron Economos <w6rz@comcast.net> | 2018-12-21 23:11:11 -0800 |
---|---|---|
committer | Andrej Rode <mail@andrejro.de> | 2019-02-14 11:17:48 +0100 |
commit | addf04b9c51779a423a4795f02c941eaff5a33a1 (patch) | |
tree | 90c4558a18e1b075e8586a0795a40365dc287f8b /gr-blocks/include/gnuradio | |
parent | b17a9b3f0672318cb6fa240d14aed14ffffebe69 (diff) |
blocks: Fix file_source offset/length to properly access large files.
Diffstat (limited to 'gr-blocks/include/gnuradio')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/file_source.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/file_source.h b/gr-blocks/include/gnuradio/blocks/file_source.h index cd73c97d02..007267a7c9 100644 --- a/gr-blocks/include/gnuradio/blocks/file_source.h +++ b/gr-blocks/include/gnuradio/blocks/file_source.h @@ -62,7 +62,7 @@ namespace gr { * \param len produce only items [offset, offset+len) */ static sptr make(size_t itemsize, const char *filename, bool repeat = false, - size_t offset = 0, size_t len = 0); + uint64_t offset = 0, uint64_t len = 0); /*! * \brief seek file to \p seek_point relative to \p whence @@ -70,7 +70,7 @@ namespace gr { * \param seek_point sample offset in file * \param whence one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek) */ - virtual bool seek(long seek_point, int whence) = 0; + virtual bool seek(int64_t seek_point, int whence) = 0; /*! * \brief Opens a new file. @@ -80,7 +80,7 @@ namespace gr { * \param offset begin this many items into file * \param len produce only items [offset, offset+len) */ - virtual void open(const char *filename, bool repeat, size_t offset = 0, size_t len = 0) = 0; + virtual void open(const char *filename, bool repeat, uint64_t offset = 0, uint64_t len = 0) = 0; /*! * \brief Close the file handle. |