TaskPoolSerializer.load

Loads serialized tasks from disk. Does nothing if no file exists.

  1. size_t load(TaskPoolT task_pool, cstring load_file_path, Args args)
    class TaskPoolSerializer
    size_t
    load
    (
    TaskPoolT
    Args...
    )
  2. size_t load(TaskPoolT task_pool, InputStream stream, Args args)

Parameters

task_pool TaskPoolT

The task pool that the tasks will be loaded in to.

load_file_path cstring

The file path of the file to load.

args Args

Parameters matching the task's 'deserialize()' excluding the deserialized buffer itself.

Return Value

Type: size_t

The number of items loaded from the file.

Throws

When serialized data has been corrupted and expected number of items is not the amount read.

Meta