Add convenience template methods to Buffer