Key to buffer conversion