portable_pty_write function
Write bytes to the PTY master side (child's stdin).
Returns number of bytes written, or -1 on error.
Implementation
@ffi.Native<
ffi.Int64 Function(
ffi.Pointer<PortablePty>,
ffi.Pointer<ffi.Uint8>,
ffi.UintPtr,
)
>()
external int portable_pty_write(
ffi.Pointer<PortablePty> handle,
ffi.Pointer<ffi.Uint8> buf,
int len,
);