Decode the length octets from the specified streamBuf and load the result to the specified result.
Synopsis
Declared in <balber_berutil.h>
static
int
getLength(
int* result,
int* accumNumBytesConsumed,
std::streambuf* streamBuf);
Description
If the length is indefinite (i.e., contents will be terminated by "end‐of‐content" octets) then result will be set to k_INDEFINITE_LENGTH. Add the number of bytes consumed to the specified accumNumBytesConsumed. Return 0 on success, and a non‐zero value otherwise.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
result |
destination for the decoded length |
accumNumBytesConsumed |
running total of bytes consumed; incremented by this call |
streamBuf |
input stream buffer |
Created with MrDocs