Determine how much data is needed to fully decode a BSER pdu.
When reading incrementally, it is useful to know how much data to read to fully decode a BSER pdu.
| Name | Thrown on |
|---|---|
std::out_of_range | if more data needs to be read to decode the header, or a runtime_error if the header is invalid. |
The total length in bytes of the encoded pdu.
| Name | Description |
|---|---|
| buf | The buffer holding the start of a BSER pdu. |