BloombergLP::balber::BerUtil_StreambufUtil::peekChar

Read the next byte from the specified streamBuf without advancing the read position and load that byte into the specified value. 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.

Synopsis

Declared in <balber_berutil.h>

static
int
peekChar(
    char* value,
    std::streambuf* streamBuf);