Encode a 64‐bit decimal as BER length and contents octets.

Synopsis

Declared in <balber_berutil.h>

static
int
putDecimal64Value(
    std::streambuf* streamBuf,
    bdldfp::Decimal64 value);

Description

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. See the package‐level documentation of {`balber`} for the definition of the format used to encode 64‐bit decimal values.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

streamBuf

output stream buffer

value

value to encode

Created with MrDocs