HomeManualTopicsTypesSymbols

std::read_from

reads data from the specified input channel

Parameters

fd
the input channel
length
the number of bytes to read

Results

None

Description

The function might block until the input channel is ready to deliver more data.

The read data is treated as binary bytes.

This function needs I/O-access rights.

Example

read_from! $buf STDIN_FILENO 10

Topic

Input-Output

See also

std::read a low level read function
std::readln_from reads a line from the specified input channel
std::read_from_until reads data from the specified input channel until a specific sentinel is encountered