[#BloombergLP-bslx-TestOutStream-length] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/TestOutStream.adoc[TestOutStream]::length :relfileprefix: ../../../ :mrdocs: Return the number of bytes in this stream. == Synopsis Declared in `<bslx_testoutstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t length() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#