diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-05-24 15:10:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-24 15:10:19 +0000 |
commit | ecc191f590f76584a14c9c51727412b0b7b3086e (patch) | |
tree | b27ee434ed541ba3a386ff6a3238f66b9451ef22 /src/stream.h | |
parent | 71191e311d949b1b7bdd74fc36a14306f492c181 (diff) | |
download | libbu++-ecc191f590f76584a14c9c51727412b0b7b3086e.tar.gz libbu++-ecc191f590f76584a14c9c51727412b0b7b3086e.tar.bz2 libbu++-ecc191f590f76584a14c9c51727412b0b7b3086e.tar.xz libbu++-ecc191f590f76584a14c9c51727412b0b7b3086e.zip |
Changed the Bu::Stream API, setSize is now standard. There may be a few more
things that should be added. A few of them still need to be implemented. I
know that truncate for Bu::File is possible on windows, I've used it before, but
hell if I can find it. Myriad also needs the setSize function completed.
Diffstat (limited to '')
-rw-r--r-- | src/stream.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h index bfe3ef9..0ea5560 100644 --- a/src/stream.h +++ b/src/stream.h | |||
@@ -152,6 +152,14 @@ namespace Bu | |||
152 | */ | 152 | */ |
153 | virtual void setBlocking( bool bBlocking=true ) = 0; | 153 | virtual void setBlocking( bool bBlocking=true ) = 0; |
154 | 154 | ||
155 | /** | ||
156 | * Set the size of the stream, this does not apply to many types of | ||
157 | * streams. For those that it does apply to, data will be added or | ||
158 | * removed from the end of the stream, but the content of the added | ||
159 | * data is undefined. | ||
160 | */ | ||
161 | virtual void setSize( long iSize ) = 0; | ||
162 | |||
155 | public: // Filters | 163 | public: // Filters |
156 | 164 | ||
157 | 165 | ||