Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 385 Bytes

readAsync.md

File metadata and controls

11 lines (8 loc) · 385 Bytes

readAsync

readAsync(fd: number, buf: Buffer, callback: (bytes: number) => void);

Asynchronous version of read function.

  • fd - file descriptor
  • buf - Buffer where to place read data
  • callback - function that is called when read finishes, receives one argument on success - number of bytes read. On failure returns a negative error number.