nlib
Crc.h
Go to the documentation of this file.
1 
2 #pragma once
3 #ifndef INCLUDE_NN_NLIB_CRC_H_
4 #define INCLUDE_NN_NLIB_CRC_H_
5 
6 #include "nn/nlib/Config.h"
7 
8 NLIB_NAMESPACE_BEGIN
9 
11  public:
13  errno_t Update(const void* buf, size_t len) NLIB_NOEXCEPT NLIB_NONNULL;
14  errno_t Update(int b) NLIB_NOEXCEPT;
15  uint32_t GetValue() const NLIB_NOEXCEPT;
16 
17  private:
18  uint32_t m_Value;
19 };
20 
21 NLIB_NAMESPACE_END
22 
23 #endif // INCLUDE_NN_NLIB_CRC_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
Definition: Platform.h:2151
The class for calculating the CRC-32 for data (streams).
Definition: Crc.h:10
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_NONNULL
Indicates that you cannot specify NULL for all arguments.
Definition: Platform_unix.h:66
A file that contains the configuration information for each development environment.
#define NLIB_VIS_PUBLIC
Symbols for functions and classes are made available outside of the library.
Definition: Platform_unix.h:51
int errno_t
Indicates with an int-type typedef that a POSIX error value is returned as the return value...
Definition: NMalloc.h:24