buffer index