aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/FileInStream.h
Commit message (Collapse)AuthorAgeFilesLines
* Mark overridden virtual functionsPierre Ossman2024-06-241-1/+1
| | | | | Use the new "override" keyword to properly differentiate between new virtual methods, and existing virtual methods being overridden.
* Make BufferedInStream allocation more availablePierre Ossman2022-08-251-1/+1
| | | | | Allow subclasses to call it, instead of it being strictly internal. This is useful when a subclass can only provide data in minimum sized chunks.
* Change streams to be asynchronousPierre Ossman2020-05-211-1/+1
| | | | | | | | | | Major restructuring of how streams work. Neither input nor output streams are now blocking. This avoids stalling the rest of the client or server when a peer is slow or unresponsive. Note that this puts an extra burden on users of streams to make sure they are allowed to do their work once the underlying transports are ready (e.g. monitoring fds).
* Create common base classes for buffered streamsPierre Ossman2020-05-211-9/+4
| | | | | Most streams are backed by a memory buffer. Create common base classes for this functionality to avoid code duplication.
* Use size_t for lengths in stream objectsPierre Ossman2019-11-151-2/+2
| | | | | | | | Provides safety against them accidentally becoming negative because of bugs in the calculations. Also does the same to CharArray and friends as they were strongly connection to the stream objects.
* Add stream class to feed data from a filePierre Ossman2015-02-131-0/+50