Read the next byte from the specified streamBuf without advancing the read position and load that byte into the specified value.
Synopsis
Declared in <balber_berutil.h>
static
int
peekChar(
char* value,
std::streambuf* streamBuf);
Description
Return 0 on success, and a non‐zero value otherwise. If this operation is not successful, the value of *value is unchanged. This operation fails if the input sequence of streamBuf is at its end.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
value |
destination for the decoded value |
streamBuf |
input stream buffer |
Created with MrDocs