[#BloombergLP-balber-BerUtil_StreambufUtil-peekChar] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerUtil_StreambufUtil.adoc[BerUtil_StreambufUtil]::peekChar :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int peekChar( char* value, std::streambuf* streamBuf); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#