aboutsummaryrefslogtreecommitdiff
path: root/src/rt/circular_buffer.h
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-01-08 18:52:37 -0500
committerGraydon Hoare <[email protected]>2011-01-10 11:31:33 -0800
commit9e5f6d3977d96b4d12b0530432ec505b8df2a383 (patch)
treeabc2e678971499f7efacf7937074c8eafd041868 /src/rt/circular_buffer.h
parentRemove the assumption that circular_buffer's buffer has a power of two size (diff)
downloadrust-9e5f6d3977d96b4d12b0530432ec505b8df2a383.tar.xz
rust-9e5f6d3977d96b4d12b0530432ec505b8df2a383.zip
Cleanup circular_buffer
Diffstat (limited to 'src/rt/circular_buffer.h')
-rw-r--r--src/rt/circular_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rt/circular_buffer.h b/src/rt/circular_buffer.h
index d44721b5..cdd0b03b 100644
--- a/src/rt/circular_buffer.h
+++ b/src/rt/circular_buffer.h
@@ -24,6 +24,10 @@ public:
size_t size();
private:
+ size_t initial_size();
+ void grow();
+ void shrink();
+
// Size of the buffer in bytes.
size_t _buffer_sz;