Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
NTDLS committed Apr 11, 2018
1 parent a2bba6d commit 38ed2b8
Show file tree
Hide file tree
Showing 39 changed files with 420 additions and 450 deletions.
4 changes: 1 addition & 3 deletions NSWFL.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include <Windows.H>
#include <CommCtrl.H>
#include <Stdio.H>
#include <Stdlib.H>
#include <WinLDAP.H> // Requires WLDAP32.Lib

#include "NSWFL_MemoryPool.H"
#include "NSWFL_Types.H"
#include "NSWFL_Conversion.H"
#include "NSWFL_DateTime.H"
Expand All @@ -37,7 +36,6 @@
#include "NSWFL_CommandLineParser.H"
#include "NSWFL_StringBuilder.H"
#include "NSWFL_StringBuilderArray.H"
#include "NSWFL_MemoryPool.H"
#include "NSWFL_Base64.H"
#include "NSWFL_VectorBinary.H"
#include "NSWFL_CRC32.H"
Expand Down
22 changes: 11 additions & 11 deletions NSWFL_CRC32.Cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ namespace NSWFL {

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CCRC32::CCRC32(void)
CRC32::CRC32(void)
{
this->Initialize();
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CCRC32::~CCRC32(void)
CRC32::~CRC32(void)
{
//No destructor code.
}
Expand All @@ -50,7 +50,7 @@ namespace NSWFL {
initalize the table before using any of the other CRC32 calculation functions.
*/

void CCRC32::Initialize(void)
void CRC32::Initialize(void)
{
//0x04C11DB7 is the official polynomial used by PKZip, WinZip and Ethernet.
unsigned int iPolynomial = 0x04C11DB7;
Expand Down Expand Up @@ -78,7 +78,7 @@ namespace NSWFL {
You can create CRCs without it, but they won't conform to the standard.
*/

unsigned int CCRC32::Reflect(unsigned int iReflect, const char cChar)
unsigned int CRC32::Reflect(unsigned int iReflect, const char cChar)
{
unsigned int iValue = 0;

Expand All @@ -102,7 +102,7 @@ namespace NSWFL {
Note: For Example usage example, see FileCRC().
*/

void CCRC32::PartialCRC(unsigned int *iCRC, const unsigned char *sData, size_t iDataLength)
void CRC32::PartialCRC(unsigned int *iCRC, const unsigned char *sData, size_t iDataLength)
{
while (iDataLength--)
{
Expand All @@ -118,7 +118,7 @@ namespace NSWFL {
Returns the calculated CRC32 (through iOutCRC) for the given string.
*/

void CCRC32::FullCRC(const unsigned char *sData, size_t iDataLength, unsigned int *iOutCRC)
void CRC32::FullCRC(const unsigned char *sData, size_t iDataLength, unsigned int *iOutCRC)
{
((unsigned int)*iOutCRC) = 0xffffffff; //Initilaize the CRC.

Expand All @@ -132,7 +132,7 @@ namespace NSWFL {
Returns the calculated CRC23 for the given string.
*/

unsigned int CCRC32::FullCRC(const unsigned char *sData, size_t iDataLength)
unsigned int CRC32::FullCRC(const unsigned char *sData, size_t iDataLength)
{
unsigned int iCRC = 0xffffffff; //Initilaize the CRC.

Expand All @@ -149,7 +149,7 @@ namespace NSWFL {
it has been provided for performance purposes only.
*/

bool CCRC32::FileCRC(const char *sFileName, unsigned int *iOutCRC, size_t iBufferSize)
bool CRC32::FileCRC(const char *sFileName, unsigned int *iOutCRC, size_t iBufferSize)
{
((unsigned int)*iOutCRC) = 0xffffffff; //Initilaize the CRC.

Expand Down Expand Up @@ -195,7 +195,7 @@ namespace NSWFL {
Calculates the CRC32 of a file using the a default buffer size of 1MB.
*/

unsigned int CCRC32::FileCRC(const char *sFileName)
unsigned int CRC32::FileCRC(const char *sFileName)
{
unsigned int iCRC;
if (this->FileCRC(sFileName, &iCRC, 1048576))
Expand All @@ -213,7 +213,7 @@ namespace NSWFL {
it has been provided for performance purposes only.
*/

unsigned int CCRC32::FileCRC(const char *sFileName, size_t iBufferSize)
unsigned int CRC32::FileCRC(const char *sFileName, size_t iBufferSize)
{
unsigned int iCRC;
if (this->FileCRC(sFileName, &iCRC, iBufferSize))
Expand All @@ -228,7 +228,7 @@ namespace NSWFL {
Calculates the CRC32 of a file using the a default buffer size of 1MB.
*/

bool CCRC32::FileCRC(const char *sFileName, unsigned int *iOutCRC)
bool CRC32::FileCRC(const char *sFileName, unsigned int *iOutCRC)
{
return this->FileCRC(sFileName, iOutCRC, 1048576);
}
Expand Down
6 changes: 3 additions & 3 deletions NSWFL_CRC32.H
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ namespace NSWFL {
namespace Hashing {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

class CCRC32 {
class CRC32 {

public:
CCRC32(void);
~CCRC32(void);
CRC32(void);
~CRC32(void);

void Initialize(void);

Expand Down
1 change: 1 addition & 0 deletions NSWFL_CommandLineParser.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_COMMANDLINEPARSER_H_
#define _NSWFL_COMMANDLINEPARSER_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace CommandLine {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions NSWFL_Conversion.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_CONVERSION_H_
#define _NSWFL_CONVERSION_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace Conversion {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions NSWFL_DateTime.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_DATETIME_H_
#define _NSWFL_DATETIME_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace DateTime {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions NSWFL_Debug.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_DEBUG_H_
#define _NSWFL_DEBUG_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace Debug {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions NSWFL_File.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_FILE_H_
#define _NSWFL_FILE_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace File {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions NSWFL_Graphics.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_GRAPHICS_H_
#define _NSWFL_GRAPHICS_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace Graphics {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
5 changes: 1 addition & 4 deletions NSWFL_HighPrecisionTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@
#ifndef _NSWFL_HIGHPRECISIONTIMER_H_
#define _NSWFL_HIGHPRECISIONTIMER_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace HighPrecisionTimer {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include <Windows.H>

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

class HighPrecisionTimer
{
protected:
Expand Down
1 change: 1 addition & 0 deletions NSWFL_InsecureInterface.H
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#ifndef _NSWFL_INSECUREINTERFACE_H_
#define _NSWFL_INSECUREINTERFACE_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace NSWFL {
namespace InsecureInterface {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
Loading

0 comments on commit 38ed2b8

Please sign in to comment.