In‐core representation of an unsigned 64‐bit big‐endian integer.

Synopsis

Declared in <bdlb_bigendian.h>

class BigEndianUint64;

Description

This class provides a container for an in‐core representation of an unsigned 64‐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 a Uint64 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.

Member Functions

Name

Description

operator=

Store in this object the specified value as an unsigned 64‐bit big‐endian integer, and return a reference to this modifiable object.

bdexStreamIn

Assign to this object the value read from the specified input stream.

bdexStreamOut

Write this value to the specified output stream.

print

Format this object to the specified output stream.

operator BloombergLP::bslmf::NestedTraitDeclaration<BigEndianUint64, HasPrintMethod>

Declare that this type is trivially copyable.

operator bsls::Types::Uint64

Return the value stored in this object as a bsls::Types::Uint64 in the native byte‐order.

Static Member Functions

Name

Description

make

Create and initialize a BigEndianUint64 object that stores the specified value as an unsigned 64‐bit big‐endian integer.

maxSupportedBdexVersion

maxSupportedBdexVersion overloads

Friends

Name

Description

BloombergLP::bdlb::operator!=

Return true if the specified lhs and rhs do not have the same value.

BloombergLP::bdlb::operator==

Return true if the specified lhs and rhs have the same value.

Created with MrDocs