Read numBytes from the file descriptor into buffer.
Declared in <bdls_fdstreambuf.h>
int
read(
char* buffer,
int numBytes);
Read the specified numBytes bytes from the current position of the file descriptor into the specified buffer. Return the number of characters successfully read. The behavior is undefined unless 0 <= numBytes and buffer is at least numBytes long. Note that on Windows in text mode, `\r ` is read as a single character and stored in the buffer as ` `.
the number of characters successfully read
| Name | Description |
|---|---|
| buffer | destination for bytes read |
| numBytes | number of bytes to read |