BloombergLP::bslx::ByteOutStream::putString

Write the length and characters of the specified value to this stream.

Synopsis

Declared in <bslx_byteoutstream.h>

ByteOutStream&
putString(bsl::string const& value);

Description

Write to this stream the length of the specified value (see putLength) and an array of one-byte, two's complement unsigned integers comprised of the least-significant one byte of each character in the value, and return a reference to this stream. If this stream is initially invalid, this operation has no effect.

Return Value

a reference to this stream

Parameters

NameDescription
valuestring whose length and characters are written