Add ByteStream functions getPaddedCopy() and getUnpaddedCopy().