diff options
Diffstat (limited to 'gr-blocks/lib/file_source_impl.h')
-rw-r--r-- | gr-blocks/lib/file_source_impl.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gr-blocks/lib/file_source_impl.h b/gr-blocks/lib/file_source_impl.h index 19f393fc1d..6de3fc0d16 100644 --- a/gr-blocks/lib/file_source_impl.h +++ b/gr-blocks/lib/file_source_impl.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2012 Free Software Foundation, Inc. + * Copyright 2012, 2018 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -33,6 +33,9 @@ namespace gr { { private: size_t d_itemsize; + size_t d_start_offset_items; + size_t d_length_items; + size_t d_items_remaining; FILE *d_fp; FILE *d_new_fp; bool d_repeat; @@ -47,16 +50,17 @@ namespace gr { void do_update(); public: - file_source_impl(size_t itemsize, const char *filename, bool repeat); + file_source_impl(size_t itemsize, const char *filename, bool repeat, + size_t offset, size_t len); ~file_source_impl(); bool seek(long seek_point, int whence); - void open(const char *filename, bool repeat); + void open(const char *filename, bool repeat, size_t offset, size_t len); void close(); int work(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items); void set_begin_tag(pmt::pmt_t val); }; |