BloombergLP::bdlsb::OverflowMemOutput::sputn

Write characters from the specified source to this buffer.

Synopsis

Declared in <bdlsb_overflowmemoutput.h>

std::streamsize
sputn(
    char const* source,
    std::streamsize length);

Description

Write the specified length characters from the specified source to this buffer. Return the number of characters written, which is either length or the distance from the current write position to the end of the write buffer, whichever is smaller, and move the write cursor position by this amount. The behaviour is undefined unless source != 0 || length > 0.

Return Value

number of characters successfully written

Parameters

NameDescription
sourcebuffer of characters to write
lengthnumber of characters to write