ost::CRC16Digest(3)
π ost::CRC16Digest β Library Functions Manual π
okay bestie, sit DOWN, because today we're getting into ost::CRC16Digest, straight out of the Library Functions Manual. it's a CRC16 thing. it's a class. it's giving hash accumulator. let's go π
β¨
πΈ NAME πΈ
ost::CRC16Digest β A crc16 collection/compution hash accumulator class.
(yes, "compution." we do not fix the ancestors' typos, we simply respect them π)
π¦ SYNOPSIS π¦
#include <digest.h>
Inherits ost::Digest.
β¨ Public Member Functions β¨
CRC16Digest ()β the no-args constructor, making you a fresh little digest πCRC16Digest (const CRC16Digest &crc)β copy constructor, it copies fromcrcπ«Άvirtual ~CRC16Digest ()β virtual destructor, so it cleans up politely when its main character arc ends πvoid initDigest (uint16 crc)β set up the digest with auint16startingcrcβvoid initDigest (void)β the no-arg reset version πunsigned getSize (void)β tells you how big it is, size-wise πCRC16Digest & operator= (const CRC16Digest &right)β assignment, copies fromrightπoperator const uint16 () constβ implicit conversion toconst uint16, lowkey iconic π₯uint16 getDigest (void)β hands you the digest as auint16β¨unsigned getDigest (unsigned char *buffer)β hands you the digest written intobufferπvoid putDigest (const unsigned char *buffer, unsigned length)β feedslengthbytes frombufferinto the digest π§
π Protected Member Functions π
int overflow (int c)β protected, the internal overflow handler for charactercπstd::ostream & strDigest (std::ostream &os)β protected, streams the digest out toosπ
π Detailed Description π
A crc16 collection/compution hash accumulator class.
π Author π
David Sugar dyfet@ostel.com
crc16 computation hash.
fr fr that's the whole vibe: crc16 computation hash. no notes. πΈ
π«Ά Constructor & Destructor Documentation π«Ά
ost::CRC16Digest::CRC16Digest ()β the plain constructor β¨ost::CRC16Digest::CRC16Digest (const CRC16Digest & crc)β the copy constructor, takingcrcπvirtual ost::CRC16Digest::~CRC16Digest () [inline], [virtual]β destructor, marked[inline]and[virtual]β
π₯ Member Function Documentation π₯
unsigned ost::CRC16Digest::getDigest (unsigned char * buffer) [virtual]β Implementsost::Digest.uint16 ost::CRC16Digest::getDigest (void) [inline]β the inlineuint16-returning flavor πunsigned ost::CRC16Digest::getSize (void) [inline], [virtual]β Implementsost::Digest.void ost::CRC16Digest::initDigest (uint16 crc) [inline]β the inline one that takes auint16 crcπvoid ost::CRC16Digest::initDigest (void) [inline], [virtual]β Implementsost::Digest.- References
initDigest(). - Referenced by
initDigest().
- References
not it referencing itself and being referenced by itself π circular icon behavior, we love to see it
ost::CRC16Digest::operator const uint16 () const [inline]β the inline conversion operator πΈCRC16Digest& ost::CRC16Digest::operator= (const CRC16Digest & right)β assignment fromrightπ¦int ost::CRC16Digest::overflow (int c) [protected]β protected overflow handler forcπvoid ost::CRC16Digest::putDigest (const unsigned char * buffer, unsigned length) [virtual]β Implementsost::Digest.std::ostream& ost::CRC16Digest::strDigest (std::ostream & os) [protected], [virtual]β Implementsost::Digest.
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
and that's the whole page, bestie π₯Ήπ this one came from GNU CommonC++, dated Sun Dec 27 2020 β so when you're out here hashing crc16s, just know the Doxygen machine and the 2020 holiday season had your back. mwah π β¨π
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms