prints a buffer object.