def METHOD_NAME(self, offset):
    length = len(self.payload)
    if length < offset:
        self.payload += [self.padding] * (offset - length)
    elif length != 0:
        print(f"WARNING: potential overwrite of payload len={length} offset={offset}")