[#BloombergLP-balber-BerUtil_IntegerImpUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerUtil_IntegerImpUtil :relfileprefix: ../../ :mrdocs: Utilities for BER integer encoding and decoding. == Synopsis Declared in `<balber_berutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BerUtil_IntegerImpUtil; ---- == Description This component‐private utility `struct` provides a namespace for a suite of functions used by `BerUtil` to implement BER encoding and decoding operations for integer values. Within the definition of this `struct`: * *the specification*: > Refers to the August 2015 revision of the ITU‐T Recommendation X.690. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/Constants.adoc[`Constants`] | `Constants` is an alias to a namespace for a suite of general‐purpose constants that occur when encoding or decoding BER data. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/LengthImpUtil.adoc[`LengthImpUtil`] | `LengthUtil` is an alias to a namespace for a suite of functions used to implement BER encoding and decoding operations for length quantities. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/RawIntegerUtil.adoc[`RawIntegerUtil`] | `RawIntegerUtil` is an alias to a namespace for a suite of low‐level functions used to implement BER encoding operations for integer values. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/StreambufUtil.adoc[`StreambufUtil`] | `StreambufUtil` is an alias to a namespace for a suite of functions used to implement input and output operations on `bsl::streambuf` objects. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/get40BitIntegerValue.adoc[`get40BitIntegerValue`] | Read 5 bytes from the input sequence of the specified `streamBuf` and load to the specified `value` the interpretation of those bytes as a 40‐bit, signed. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/getIntegerValue-02.adoc[`getIntegerValue`] | Read the specified `length` number of bytes from the input sequence of the specified `streamBuf` and load to the specified `value` the interpretation of those. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/getNumOctetsToStream-0e.adoc[`getNumOctetsToStream`] | `getNumOctetsToStream` overloads | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/put40BitIntegerValue.adoc[`put40BitIntegerValue`] | Write the 5 octets that comprise the 40‐bit, signed, 2's‐complement, bit‐endian representation of the specified integer `value` to the specified `streamBuf`. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/putIntegerGivenLength.adoc[`putIntegerGivenLength`] | Write exactly the specified `length` number of contents octets of the BER encoding of the specified integer `value` (as defined in the specification) to the. | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/putIntegerValue.adoc[`putIntegerValue`] | Write the length and contents octets of the BER encoding of the specified integer `value` (as defined in the specification) to the output sequence of the. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerUtil_IntegerImpUtil/k_40_BIT_INTEGER_LENGTH.adoc[`k_40_BIT_INTEGER_LENGTH`] | Number of octets used to encode a signed integer value in 40 bits. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#