Read up to numBytes characters into buffer.
Declared in <bdls_fdstreambuf.h>
virtual
std::streamsize
xsgetn(
char* buffer,
std::streamsize numBytes) override;
Read up to the specified numBytes characters from the file descriptor into the specified buffer and return the number of characters successfully read. The behavior is undefined unless buffer is at least numBytes bytes long. Note that on a Windows text file, a `\r in the file will be read as
` (counting as a single character).
the number of characters successfully read
| Name | Description |
|---|---|
| buffer | destination for characters read |
| numBytes | maximum number of characters to read |