make getBufferIndexFromIndex() available