Lines Matching defs:size
37 circular_buffer( int size = 0 );
40 void resize( int size );
49 int size() const { return m_size; }
57 { return buf_read( m_buf, (m_ri + i) % size() ); }
60 { return buf_read( m_buf , (m_wi + i) % size() ); }
73 void* buf_alloc( int size );
80 int m_size; // size of the buffer
95 std::cout << "Size : " << size() << std::endl;
122 circular_buffer<T>::circular_buffer( int size )
123 : m_size(size)
150 circular_buffer<T>::resize( int size )
154 void * new_buf = buf_alloc(size);
156 for( i = 0; i < size && i < used(); i++ ) {
165 m_size = size;
233 circular_buffer<T>::buf_alloc( int size )
234 { return new unsigned char[ size * sizeof(T) ]; }