hal_files.h: Include a file offset in object data Topic is solved

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
faisal
Posts: 374
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 44 times
Been thanked: 60 times

hal_files.h: Include a file offset in object data  Topic is solved

Postby faisal » Fri Mar 16, 2018 4:13 am

How about including a file offset in the object data - like:

Code: Select all

#define _file_stream_data                                                   \
  _base_sequential_stream_data                                          \
  fileoffset_t offset

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: hal_files.h: Include a file offset in object data

Postby Giovanni » Sat Jun 02, 2018 2:22 pm

Hi,

There is the method fileStreamGetPosition() which I slightly modified, the offset could come from an underlying File System and there is no point in duplicating the information.

Also renamed fileStreamSeek() in fileStreamSetPosition().

Giovanni


Return to “Small Change Requests”

Who is online

Users browsing this forum: No registered users and 3 guests