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>
180 Crc32(
const void *data, bsl::size_t length);
205 template <
class STREAM>
226 void update(
const void *data, bsl::size_t length);
238 template <
class STREAM>
253 bsl::ostream&
print(bsl::ostream& stream)
const;
255#ifndef BDE_OMIT_INTERNAL_DEPRECATED
268 unsigned int view()
const;
320: d_crc(original.d_crc)
332template <
class STREAM>
339 stream.getUint32(crc);
356 const unsigned int crc = d_crc;
358 return crc ^ 0xffffffff;
368template <
class STREAM>
373 stream.putUint32(d_crc);
385 return d_crc ^ 0xffffffff;
388#ifndef BDE_OMIT_INTERNAL_DEPRECATED
401 return d_crc ^ 0xffffffff;
412 return lhs.d_crc == rhs.d_crc;
418 return !(lhs == rhs);
424 return checksum.print(stream);
Definition bdlde_crc32.h:152
~Crc32()=default
Destroy this object.
Crc32()
Definition bdlde_crc32.h:306
void reset()
Definition bdlde_crc32.h:362
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition bdlde_crc32.h:333
static int maxSupportedBdexVersion()
Definition bdlde_crc32.h:392
friend bool operator==(const Crc32 &, const Crc32 &)
unsigned int view() const
Definition bdlde_crc32.h:399
unsigned int checksum() const
Return the current value of this checksum.
Definition bdlde_crc32.h:383
Crc32 & operator=(const Crc32 &rhs)
Definition bdlde_crc32.h:326
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition bdlde_crc32.h:369
void update(const void *data, bsl::size_t length)
unsigned int checksumAndReset()
Definition bdlde_crc32.h:354
bsl::ostream & print(bsl::ostream &stream) const
#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)