Methods

initΒΆ

init(pipe:Pipe, direction:Int)

Pipe constructor. Create UNIX pipe using PIPE(2). Throws PipeCreateFail if pipe can not be created.
Source: stdlib.ngs:2917

direction

One of: STDLIB_CHILD_TO_PARENT_PIPE_DIR or STDLIB_PARENT_TO_CHILD_PIPE_DIR

Example

p = Pipe(STDLIB_PARENT_TO_CHILD_PIPE_DIR)