[#BloombergLP-bslx-GenericInStream-getVersion] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/GenericInStream.adoc[GenericInStream]::getVersion :relfileprefix: ../../../ :mrdocs: Assign to the specified `version` the one‐byte, two's complement unsigned integer comprised of the one byte of this stream at the current cursor location, update the cursor location, and return a reference to this stream. If this stream is initially invalid, this operation has no effect. If this function otherwise fails to extract a valid value, this stream is marked invalid and the value of `version` is undefined. Note that the value will be zero‐extended. == Synopsis Declared in `<bslx_genericinstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslx/GenericInStream.adoc[GenericInStream<STREAMBUF>]& getVersion(int& version); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#