Pipe type
Direct children types
- PipeFromChildProcess
Undocumented Direct subtypes: 3
- PipeToChildProcess
Undocumented Direct subtypes: 2
Methods
- close_reading_end(p:Pipe) Source: stdlib.ngs:6156
Close reading end of the Pipe
- close_writing_end(p:Pipe) Source: stdlib.ngs:6153
Close writing end of the Pipe
- dup2_reading_end(p:Pipe, newfd:Int) Source: stdlib.ngs:6181
DUP2(2) reading file descriptor
- dup2_writing_end(p:Pipe, newfd:Int) Source: stdlib.ngs:6178
DUP2(2) writing file descriptor
- init(pipe:Pipe) Source: stdlib.ngs:6120
Pipe constructor. Create UNIX pipe using PIPE(2). Throws PipeCreateFail if pipe can not be created. Example
p = Pipe()
- init(pipe:Pipe, other:Pipe) Source: stdlib.ngs:6132
Initializes Pipe, copying read_fd and write_fd from another Pipe. Example
my_pipe = ... second_pipe = Pipe(my_pipe)
- read(p:Pipe, count:Any=null) Source: stdlib.ngs:6173
Read from Pipe without parsing. TODO: document if it throws. Returns
read dataExample
data = read(myipe)
- Str(p:Pipe) Source: stdlib.ngs:6148
Undocumented
- write(s:Str, p:Pipe)deprecated Source: stdlib.ngs:6161
DEPRECATED! Do not use!
- write(p:Pipe, s:Str) Source: stdlib.ngs:6167
Write to Pipe. TODO: document if it throws. Returns
unspecified at this time, do not count on it