Removes toPaddedBuffer and extends toBuffer