os/Pipe
-
class Pipe
-
-
static method new → Pipe
-
method read(len: Int) → Pointer
- read ‘len’ bytes at most from the pipe
-
method write~string(str: String) → Int
- write a string to the pipe
-
method write(data: Pointer, len: Int) → Int
- write ‘len’ bytes of ‘data’ to the pipe
-
method close(mode: Char) → Int
- close the pipe, either in reading or writing
@param arg ‘r’ = close in reading, ‘w’ = close in writing