Lines Matching defs:size
32 explicit circular_buffer(int size=0);
35 void resize(int size);
44 int size() const { return m_size; }
52 return buf_read(m_buf, (m_ri + i) % size());
58 return buf_read(m_buf, (m_wi + i) % size());
73 void *buf_alloc(int size);
80 int m_size; // size of the buffer
93 std::cout << "Size : " << size() << std::endl;
112 circular_buffer<T>::circular_buffer(int size) : m_size(size), m_buf(0)
137 circular_buffer<T>::resize(int size)
140 void *new_buf = buf_alloc(size);
142 for (i = 0; i < size && i < used(); i++) {
149 m_size = size;
213 circular_buffer<T>::buf_alloc(int size)
215 return new unsigned char [size * sizeof(T)];