portable_pty_read function
Read bytes from the PTY master side (child's stdout).
Returns number of bytes read, or -1 on error/EOF.
Implementation
@ffi.Native<
ffi.Int64 Function(
ffi.Pointer<PortablePty>,
ffi.Pointer<ffi.Uint8>,
ffi.UintPtr,
)
>()
external int portable_pty_read(
ffi.Pointer<PortablePty> handle,
ffi.Pointer<ffi.Uint8> buf,
int len,
);