buffer conversion