aboutsummaryrefslogtreecommitdiff
path: root/src/rt/circular_buffer.h
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-07-28 00:01:06 -0700
committerGraydon Hoare <[email protected]>2010-07-28 20:30:29 -0700
commitd6cba83322fe1cb03b730bee89a5c8d7a3b5e67c (patch)
tree8f6501ac88fd6a433b09fc71a86021823cb00b1d /src/rt/circular_buffer.h
parentChange _unit_sz to unit_sz and make public in circular_buffer. (diff)
downloadrust-d6cba83322fe1cb03b730bee89a5c8d7a3b5e67c.tar.xz
rust-d6cba83322fe1cb03b730bee89a5c8d7a3b5e67c.zip
Add peek method to circular buffer.
Diffstat (limited to 'src/rt/circular_buffer.h')
-rw-r--r--src/rt/circular_buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rt/circular_buffer.h b/src/rt/circular_buffer.h
index dc4160d8..732ba329 100644
--- a/src/rt/circular_buffer.h
+++ b/src/rt/circular_buffer.h
@@ -19,6 +19,7 @@ public:
void transfer(void *dst);
void enqueue(void *src);
void dequeue(void *dst);
+ uint8_t *peek();
bool is_empty();
private: