BloombergLP::balber::BerUtil_FloatingPointImpUtil::putDoubleValue

Encode a double as BER length and contents octets.

Synopsis

Declared in <balber_berutil.h>

static
int
putDoubleValue(
    std::streambuf* streamBuf,
    double value,
    BerEncoderOptions const* options = 0);

Description

specified streamBuf. Optionally specify options, which will indicate whether -0.0 will be preserved or encoded as +0.0. Return 0 if successful, and a non-zero value otherwise. The operation succeeds if all bytes corresponding to the length and contents octets are written to the streamBuf without the write position becoming unavailable.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamBufoutput stream buffer
valuevalue to encode
optionsencoder options (0 for defaults)