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>
184 Crc64(
const void *data, bsl::size_t length);
212 template <
class STREAM>
234 void update(
const void *data, bsl::size_t length);
246 template <
class STREAM>
261 bsl::ostream&
print(bsl::ostream& stream)
const;
298: d_crc(~
bsls::Types::Uint64())
304: d_crc(~
bsls::Types::Uint64())
311: d_crc(original.d_crc)
323template <
class STREAM>
330 stream.getUint64(crc);
348 d_crc =
~bsls::Types::Uint64();
355 d_crc =
~bsls::Types::Uint64();
359template <
class STREAM>
364 stream.putUint64(~d_crc);
385 return lhs.d_crc == rhs.d_crc;
397 return checksum.print(stream);
Definition bdlde_crc64.h:154
friend bool operator==(const Crc64 &, const Crc64 &)
bsls::Types::Uint64 checksumAndReset()
Definition bdlde_crc64.h:345
bsl::ostream & print(bsl::ostream &stream) const
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlde_crc64.h:324
void update(const void *data, bsl::size_t length)
static int maxSupportedBdexVersion(int versionSelector)
Definition bdlde_crc64.h:290
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlde_crc64.h:360
void reset()
Definition bdlde_crc64.h:353
Crc64()
Definition bdlde_crc64.h:297
bsls::Types::Uint64 checksum() const
Return the current value of this checksum.
Definition bdlde_crc64.h:374
Crc64 & operator=(const Crc64 &rhs)
Definition bdlde_crc64.h:317
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
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)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
Definition bdlt_iso8601util.h:707
unsigned long long Uint64
Definition bsls_types.h:139