8#ifndef INCLUDED_BDLDE_CRC64
9#define INCLUDED_BDLDE_CRC64
123#include <bdlscm_version.h>
128#include <bsl_cstddef.h>
129#include <bsl_iosfwd.h>
182 Crc64(
const void *data, bsl::size_t length);
208 template <
class STREAM>
229 void update(
const void *data, bsl::size_t length);
240 template <
class STREAM>
255 bsl::ostream&
print(bsl::ostream& stream)
const;
292: d_crc(~
bsls::Types::Uint64())
298: d_crc(~
bsls::Types::Uint64())
305: d_crc(original.d_crc)
317template <
class STREAM>
324 stream.getUint64(crc);
342 d_crc =
~bsls::Types::Uint64();
349 d_crc =
~bsls::Types::Uint64();
353template <
class STREAM>
358 stream.putUint64(~d_crc);
379 return lhs.d_crc == rhs.d_crc;
385 return !(lhs == rhs);
391 return checksum.print(stream);
Definition bdlde_crc64.h:154
friend bool operator==(const Crc64 &, const Crc64 &)
bsls::Types::Uint64 checksumAndReset()
Definition bdlde_crc64.h:339
bsl::ostream & print(bsl::ostream &stream) const
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlde_crc64.h:318
void update(const void *data, bsl::size_t length)
static int maxSupportedBdexVersion(int versionSelector)
Definition bdlde_crc64.h:284
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlde_crc64.h:354
void reset()
Definition bdlde_crc64.h:347
Crc64()
Definition bdlde_crc64.h:291
bsls::Types::Uint64 checksum() const
Return the current value of this checksum.
Definition bdlde_crc64.h:368
Crc64 & operator=(const Crc64 &rhs)
Definition bdlde_crc64.h:311
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlde_base64alphabet.h:118
bool operator!=(const Base64DecoderOptions &lhs, const Base64DecoderOptions &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, Base64Alphabet::Enum value)
bool operator==(const Base64DecoderOptions &lhs, const Base64DecoderOptions &rhs)
Definition bdlt_iso8601util.h:691
unsigned long long Uint64
Definition bsls_types.h:137