Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Shuffler
Shuffler.Shuffle

Method Shuffler.Shuffle()->add_source()


Method add_source

void add_source(mixed source, int|void start, int|void length)

Description

Add a new source to the list of data sources. The data from the sources will be sent in order.

If start and length are not specified, the whole source will be sent, if start but not length is specified, the whole source, excluding the first start bytes will be sent.

Currently supported sources

String

An ordinary 8-bit wide pike string.

Memory

An initialized instance of the System.Memory class.

NormalFile

Stdio.File instance pointing to a normal file.

Stream

Stdio.File instance pointing to a stream of some kind (network socket, named pipe, stdin etc).

Pike-stream

Stdio.File lookalike with read callback support (set_read_callback and set_close_callback).