[#BloombergLP-bdlb-BigEndianInt32] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::BigEndianInt32 :relfileprefix: ../../ :mrdocs: This class provides a container for an in‐core representation of a signed 32‐bit big‐endian integer. It supports a complete set of _value_ _semantic_ operations, including copy construction, assignment, equality comparison, `bsl::ostream` printing, and BDEX serialization. Note that the copy constructor and copy‐assignment operator are provided by the compiler. Any object of this class can be converted to an `int` allowing comparison with any other object of this class. This class is _exception_ _neutral_ with no guarantee of rollback: if an exception is thrown during the invocation of a method on a pre‐existing object, the object is left in a valid state, but its value is undefined. In no event is memory leaked. Finally, _aliasing_ (e.g., using all or part of an object as both source and destination) is supported in all cases. == Synopsis Declared in `<bdlb_bigendian.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BigEndianInt32; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/BigEndianInt32/operator_assign.adoc[`operator=`] | Store in this object the specified `value` as a signed 32‐bit big‐endian integer, and return a reference to this modifiable object. | xref:BloombergLP/bdlb/BigEndianInt32/bdexStreamIn.adoc[`bdexStreamIn`] | Assign to this object the value read from the specified input `stream` using the specified `version` format, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If `version` is not supported, this object is unaltered and `stream` is invalidated but otherwise unmodified. If `version` is supported but `stream` becomes invalid during this operation, this object has an undefined, but valid, state. Note that no version is read from `stream`. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. | xref:BloombergLP/bdlb/BigEndianInt32/bdexStreamOut.adoc[`bdexStreamOut`] | Write this value to the specified output `stream` using the specified `version` format, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If `version` is not supported, `stream` is invalidated but otherwise unmodified. Note that `version` is not written to `stream`. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. | xref:BloombergLP/bdlb/BigEndianInt32/print.adoc[`print`] | Format this object to the specified output `stream` at the (absolute value of) the optionally specified indentation `level` and return a reference to `stream`. If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects. If `level` is negative, suppress indentation of the first line. If `spacesPerLevel` is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by `level`). If `stream` is not valid on entry, this operation has no effect. | xref:BloombergLP/bdlb/BigEndianInt32/2conversion-0b.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<BigEndianInt32, HasPrintMethod>`] | Declare that this type is trivially copyable. | xref:BloombergLP/bdlb/BigEndianInt32/2conversion-05.adoc[`operator int`] | Return the value stored in this object as a `int` in the native byte‐order. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/BigEndianInt32/make.adoc[`make`] | Create and initialize a `BigEndianInt32` object that stores the specified `value` as a signed 32‐bit big‐endian integer. | xref:BloombergLP/bdlb/BigEndianInt32/maxSupportedBdexVersion-07.adoc[`maxSupportedBdexVersion`] | `maxSupportedBdexVersion` overloads |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/bdlb/operator_not_eq-02b.adoc[BloombergLP::bdlb::operator!=]` | Return `true` if the specified `lhs` and `rhs` `BigEndianInt32` objects do not have the same value, and `false` otherwise. Two `BigEndianInt32` objects do not have the same value if and only if the respective integral network byte‐order values that they represent do not have the same value. | `xref:BloombergLP/bdlb/operator_eq-0d8.adoc[BloombergLP::bdlb::operator==]` | Return `true` if the specified `lhs` and `rhs` `BigEndianInt32` objects have the same value, and `false` otherwise. Two `BigEndianInt32` objects have the same value if and only if the respective integral network byte‐order values that they represent have the same value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#