[#BloombergLP-bdls-FdStreamBuf-xsgetn] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf.adoc[FdStreamBuf]::xsgetn :relfileprefix: ../../../ :mrdocs: 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). == Synopsis Declared in `<bdls_fdstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::streamsize xsgetn( char* buffer, std::streamsize numBytes) override; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#