TaskPoolSerializer.load

Restores tasks from the InputStream to the TaskPool.

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

Parameters

task_pool TaskPoolT

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

stream InputStream

InputStream containing the serialized tasks.

args Args

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

Return Value

Type: size_t

The number of tasks loaded from the stream.

Throws

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

Meta