diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/queuebuf.h | |
parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/queuebuf.h')
-rw-r--r-- | src/queuebuf.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/queuebuf.h b/src/queuebuf.h index 395c6ba..84b50e1 100644 --- a/src/queuebuf.h +++ b/src/queuebuf.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
3 | * | 3 | * |
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
@@ -27,14 +27,14 @@ namespace Bu | |||
27 | int getSize(); | 27 | int getSize(); |
28 | 28 | ||
29 | virtual void close(); | 29 | virtual void close(); |
30 | virtual size_t read( void *pBuf, size_t nBytes ); | 30 | virtual Bu::size read( void *pBuf, Bu::size nBytes ); |
31 | virtual size_t peek( void *pBuf, size_t nBytes ); | 31 | virtual Bu::size peek( void *pBuf, Bu::size nBytes ); |
32 | virtual size_t peek( void *pBuf, size_t nBytes, size_t nSkip ); | 32 | virtual Bu::size peek( void *pBuf, Bu::size nBytes, Bu::size nSkip ); |
33 | virtual size_t write( const void *pBuf, size_t nBytes ); | 33 | virtual Bu::size write( const void *pBuf, Bu::size nBytes ); |
34 | virtual long tell(); | 34 | virtual Bu::size tell(); |
35 | virtual void seek( long offset ); | 35 | virtual void seek( Bu::size offset ); |
36 | virtual void setPos( long pos ); | 36 | virtual void setPos( Bu::size pos ); |
37 | virtual void setPosEnd( long pos ); | 37 | virtual void setPosEnd( Bu::size pos ); |
38 | virtual bool isEos(); | 38 | virtual bool isEos(); |
39 | virtual bool isOpen(); | 39 | virtual bool isOpen(); |
40 | virtual void flush(); | 40 | virtual void flush(); |
@@ -45,7 +45,11 @@ namespace Bu | |||
45 | virtual bool isSeekable(); | 45 | virtual bool isSeekable(); |
46 | virtual bool isBlocking(); | 46 | virtual bool isBlocking(); |
47 | virtual void setBlocking( bool bBlocking=true ); | 47 | virtual void setBlocking( bool bBlocking=true ); |
48 | virtual void setSize( long iSize ); | 48 | virtual void setSize( Bu::size iSize ); |
49 | |||
50 | virtual size getSize() const; | ||
51 | virtual size getBlockSize() const; | ||
52 | virtual Bu::String getLocation() const; | ||
49 | 53 | ||
50 | private: | 54 | private: |
51 | void addBlock(); | 55 | void addBlock(); |
@@ -55,7 +59,7 @@ namespace Bu | |||
55 | int iBlockSize; | 59 | int iBlockSize; |
56 | int iReadOffset; | 60 | int iReadOffset; |
57 | int iWriteOffset; | 61 | int iWriteOffset; |
58 | size_t iTotalSize; | 62 | Bu::size iTotalSize; |
59 | typedef Bu::List<char *> BlockList; | 63 | typedef Bu::List<char *> BlockList; |
60 | BlockList lBlocks; | 64 | BlockList lBlocks; |
61 | }; | 65 | }; |