Rename get_pad to get_unused, since it's used for more than just padding. That is, more than just bytes described as pad. (In a sense, most unused bytes are padding, since they usually exist to align later data on natural boundaries.)