From 17fa6bfd9a36136b1610324349e15d9b42748ca3 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Tue, 27 Jul 2010 23:51:04 -0700 Subject: Change _unit_sz to unit_sz and make public in circular_buffer. --- src/rt/circular_buffer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/rt/circular_buffer.h') diff --git a/src/rt/circular_buffer.h b/src/rt/circular_buffer.h index 3d11b37f..dc4160d8 100644 --- a/src/rt/circular_buffer.h +++ b/src/rt/circular_buffer.h @@ -12,6 +12,8 @@ circular_buffer : public dom_owned { public: rust_dom *dom; + // Size of the data unit in bytes. + const size_t unit_sz; circular_buffer(rust_dom *dom, size_t unit_sz); ~circular_buffer(); void transfer(void *dst); @@ -25,9 +27,6 @@ private: // (x & (_buffer_sz - 1)). size_t _buffer_sz; - // Size of the data unit in bytes. - size_t _unit_sz; - // Byte offset within the buffer where to read the next unit of data. size_t _next; -- cgit v1.2.3