Memory File Streams

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
steved
Posts: 823
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Memory File Streams

Postby steved » Mon Mar 13, 2017 3:58 pm

Not sure whether this might be a change to the existing memory streams model, or a separate extension. The existing streams class lacks the 'seek' method (among others) which is used by some packages; it adds very little code, but needs additional VMT entries.
Attachments
memfilestreams.zip
Memory-based file streams code; adds get file size, get position, seek to position
(2.12 KiB) Downloaded 154 times

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

Re: Memory File Streams

Postby Giovanni » Mon Mar 13, 2017 4:08 pm

Hi,

Probably it should be a subclass adding the seek method, the base stream is meant to be sequential, it is used mainly for communication channels.

Thanks for suggesting.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 11 guests