commit | dc633bd1833c4b9df44df27135ce12fef884b53f | [log] [tgz] |
---|---|---|
author | Paul Jakma <paul@jakma.org> | Mon Dec 26 17:25:26 2016 +0000 |
committer | Paul Jakma <paul@quagga.net> | Mon Jan 23 18:51:52 2017 +0000 |
tree | 96e7a64e4b664b7ac7f64eb35782d92a4817fa9a | |
parent | 95509a6f55c63b72541fa390f7dda7fab2fa3210 [diff] |
lib/stream: Add stream_discard, to discard read data from a stream * stream.c: (stream_discard) Discard the already data from a stream, as indicated by the getp. Move remaining, unread data, to the beginning of the stream. get and end stream pointers are updated as appropriate. If all data has been consumed, then this behaves identically to stream_reset.