Wrap buffer.