Use buffer_in/buffer_out.