Some buffer utilities.