From ecc191f590f76584a14c9c51727412b0b7b3086e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 24 May 2010 15:10:19 +0000 Subject: 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. --- src/stream.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/stream.h') 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 */ virtual void setBlocking( bool bBlocking=true ) = 0; + /** + * Set the size of the stream, this does not apply to many types of + * streams. For those that it does apply to, data will be added or + * removed from the end of the stream, but the content of the added + * data is undefined. + */ + virtual void setSize( long iSize ) = 0; + public: // Filters -- cgit v1.2.3