Read up to numBytes characters into buffer.
Synopsis
Declared in <bdls_fdstreambuf.h>
virtual
std::streamsize
xsgetn(
char* buffer,
std::streamsize numBytes) override;
Description
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).
Return Value
the number of characters successfully read
Parameters
Name |
Description |
buffer |
destination for characters read |
numBytes |
maximum number of characters to read |
Created with MrDocs