tur/async_pipe

stdlib/async_pipe.tur
defn

async-read-stdin

(async-read-stdin [buf-size :int] :int)

read up to buf-size bytes from stdin in non-blocking mode.

buf-sizemaximum number of bytes to read

Since: Phase T24

defn

async-stdin-buf

(async-stdin-buf :ptr<void>)

retrieve the buffer pointer from the last async-read-stdin call.

Since: Phase T24

defn

async-stdin-len

(async-stdin-len :int)

retrieve the byte count from the last async-read-stdin call.

Since: Phase T24

defn

async-write-stdout

(async-write-stdout [data :cstr len :int] :int)

write len bytes from data to stdout in non-blocking mode.

datapointer to the bytes to write
lennumber of bytes to write

Since: Phase T24