Pipe utilities.
More...
Go to the source code of this file.
|
|
typedef struct PipeDiscardUntilResult | PipeDiscardUntilResult |
| |
◆ pipe_copy_until()
| bool pipe_copy_until |
( |
PipeSide * | source, |
|
|
PipeSide * | dest, |
|
|
const char * | terminator ) |
Copies data from one pipe to another until a specific sequence is met.
- Parameters
-
| [in] | source | Pipe to copy data from |
| [in] | dest | Pipe to copy data into. May be NULL |
| [in] | terminator | Terminator sequence |
- Returns
true if terminator sequence found, false if one of the pipes was closed prematurely.
◆ pipe_discard_until_either()
Discards data from a pipe until (including) any of specific sequences is met.
- Parameters
-
| [in] | source | Pipe to read data from |
| [in] | terminators | Terminator sequences |
| [in] | num_terminators | Number of terminator sequences |