TaskPoolSerializer.load

Restores tasks from the InputStream to the TaskPool.

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

Parameters

task_pool TaskPoolT

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

stream InputStream

InputStream containing the serialized tasks.

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