8#ifndef INCLUDED_BDLDE_CRC32
9#define INCLUDED_BDLDE_CRC32
123#include <bdlscm_version.h>
127#include <bsl_cstddef.h>
128#include <bsl_iosfwd.h>
182 Crc32(
const void *data, bsl::size_t length);
208 template <
class STREAM>
230 void update(
const void *data, bsl::size_t length);
243 template <
class STREAM>
258 bsl::ostream&
print(bsl::ostream& stream)
const;
260#ifndef BDE_OMIT_INTERNAL_DEPRECATED
273 unsigned int view()
const;
325: d_crc(original.d_crc)
337template <
class STREAM>
344 stream.getUint32(crc);
361 const unsigned int crc = d_crc;
363 return crc ^ 0xffffffff;
373template <
class STREAM>
378 stream.putUint32(d_crc);
390 return d_crc ^ 0xffffffff;
393#ifndef BDE_OMIT_INTERNAL_DEPRECATED
406 return d_crc ^ 0xffffffff;
417 return lhs.d_crc == rhs.d_crc;
429 return checksum.print(stream);
Definition bdlde_crc32.h:152
~Crc32()=default
Destroy this object.
Crc32()
Definition bdlde_crc32.h:311
void reset()
Definition bdlde_crc32.h:367
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlde_crc32.h:338
static int maxSupportedBdexVersion()
Definition bdlde_crc32.h:397
friend bool operator==(const Crc32 &, const Crc32 &)
unsigned int view() const
Definition bdlde_crc32.h:404
unsigned int checksum() const
Return the current value of this checksum.
Definition bdlde_crc32.h:388
Crc32 & operator=(const Crc32 &rhs)
Definition bdlde_crc32.h:331
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlde_crc32.h:374
void update(const void *data, bsl::size_t length)
unsigned int checksumAndReset()
Definition bdlde_crc32.h:359
bsl::ostream & print(bsl::ostream &stream) const
#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