Module stdin

Module stdin 

Source
Available on crate feature io only.
Expand description

A handle to the standard input stream.

Structs§

NSTDStdin
A handle to the standard input stream.
NSTDStdinLock
A locked handle to the standard input stream.

Functions§

nstd_io_stdin
Constructs a new handle to the standard input stream.
nstd_io_stdin_free
Frees an instance of NSTDStdin.
nstd_io_stdin_lock
Constructs a new locked handle to the standard input stream.
nstd_io_stdin_lock_read
Reads some data from stdin into a byte slice buffer.
nstd_io_stdin_lock_read_all
Continuously reads data from stdin into a buffer until EOF is reached.
nstd_io_stdin_lock_read_exact
Reads enough data from stdin to fill the entirety of buffer.
nstd_io_stdin_lock_read_to_string
Continuously reads UTF-8 data from stdin into a string buffer until EOF is reached.
nstd_io_stdin_read
Reads some data from stdin into a byte slice buffer.
nstd_io_stdin_read_all
Continuously reads data from stdin into a buffer until EOF is reached.
nstd_io_stdin_read_exact
Reads enough data from stdin to fill the entirety of buffer.
nstd_io_stdin_read_line
Reads a line from stdin and appends it to buffer.
nstd_io_stdin_read_to_string
Continuously reads UTF-8 data from stdin into a string buffer until EOF is reached.
nstd_io_stdin_unlock
Frees and unlocks an instance of NSTDStdinLock.

Type Aliases§

NSTDOptionalStdin
Represents an optional value of type NSTDStdin.
NSTDOptionalStdinLock
Represents an optional value of type NSTDStdinLock.