Function read

Source
pub fn read(fd: u64, buffer: &mut [u8]) -> Result<usize, SysError>
Available on neither crate feature native-simulator nor crate feature stub-syscalls.
Expand description

This syscall reads data from a pipe via a file descriptor. The syscall Read attempts to read up to value pointed by length bytes from file descriptor fd into the buffer, and the actual length of data read is returned. Note: available after ckb 2nd hardfork.