BloombergLP::balber::BerUtil::putLength

Encode the specified length to the specified streamBuf.

Synopsis

Declared in <balber_berutil.h>

static
int
putLength(
    std::streambuf* streamBuf,
    int length);

Description

Return 0 on success, and a non-zero value otherwise. The behavior is undefined unless 0 <= length.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamBufoutput stream buffer
lengthlength quantity to encode