diff options
| author | Brian Anderson <[email protected]> | 2011-01-08 18:52:37 -0500 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-01-10 11:31:33 -0800 |
| commit | 9e5f6d3977d96b4d12b0530432ec505b8df2a383 (patch) | |
| tree | abc2e678971499f7efacf7937074c8eafd041868 /src/rt/circular_buffer.h | |
| parent | Remove the assumption that circular_buffer's buffer has a power of two size (diff) | |
| download | rust-9e5f6d3977d96b4d12b0530432ec505b8df2a383.tar.xz rust-9e5f6d3977d96b4d12b0530432ec505b8df2a383.zip | |
Cleanup circular_buffer
Diffstat (limited to 'src/rt/circular_buffer.h')
| -rw-r--r-- | src/rt/circular_buffer.h | 4 |
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; |