Scoop API

scoop:scoop.platform:0.1.0

PipeSink

class PipeSink

source · line 33
public
public class PipeSink internal constructor(internal val file: File) : ByteSink, Closeable

The owned write side of a native pipe.

function close

source · line 53
public
public override fun close(): Unit

Closes the owned native descriptor; subsequent I/O through this owner is invalid.

function flush

source · line 47
public
public override fun flush(): Unit
  • Overrides flush · ByteSink

Checks the unbuffered pipe endpoint state; it does not wait for the reader to consume bytes.