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.
Declared in <util/string.h>
std::string_view
ReadLength(size_t len);
| Name | Thrown on |
|---|---|
std::runtime_error | if there is not enough data in the buffer. |
a string of the expected length.
| Name | Description |
|---|---|
| len [in] | The number of bytes to read from the buffer |