def METHOD_NAME(self, size):
    """
    Sets the size of the chunk, preserving any flags.
    """
    raise NotImplementedError(f"{self.METHOD_NAME.__func__.__name__} not implemented for {self.__class__.__name__}")