[#util-LineReader-ReadLength] = xref:util.adoc[util]::xref:util/LineReader.adoc[LineReader]::ReadLength :relfileprefix: ../../ :mrdocs: Returns string from current iterator position of specified length if possible and advances iterator on success. May exceed max_line_length but will not read past end of buffer. == Synopsis Declared in `<util/string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view ReadLength(size_t len); ---- == Exceptions [cols="1,4"] |=== | Name| Thrown on | `std::runtime_error` | if there is not enough data in the buffer. |=== == Return Value a string of the expected length. == Parameters [cols="1,4"] |=== | Name| Description | *len* [in] | The number of bytes to read from the buffer |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#