NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
s_crc.hpp
1#pragma once
2#include <types.h>
3
4/// @brief Wrapper around the runtime's CRC32 calculation function.
5/// @ingroup slib
6class sCrc {
7public:
8 /**
9 * @brief Calculates the CRC32 checksum of a buffer.
10 *
11 * @param data The buffer to checksum.
12 * @param size The size of the buffer, in bytes.
13 * @return The CRC32 checksum.
14 */
15 static ulong calcCRC32(const void *data, ulong size);
16};
Wrapper around the runtime's CRC32 calculation function.
Definition s_crc.hpp:6
static ulong calcCRC32(const void *data, ulong size)
Calculates the CRC32 checksum of a buffer.
Definition s_crc.cpp:4