API counted circular buffer specified