Skip to content
Permalink
a41fe79404
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
49 lines (35 sloc) 954 Bytes
/* Copyright (C) 2023 Harry Clark - Student No. 12340530 */
/* DATE: 13/03/23 */
/* HUFFMAN CODE DEMONSTRATION */
/* JUST A LITTLE THING I WANTED TO MAKE FOR FUN AFTER WATCHING A
/* TOM SCOTT VIDEO ABOUT THE SUBJECT */
/* THESE ARE ALL OF THE COMMON DATA TYPES ASSOCIATED WITH THIS PROJECT */
#ifndef COMMON_TYPES
#define COMMON_TYPES
#include <string>
#include <cstdint>
#include <Windows.h>
#ifndef UNSIGNED_TYPES
#define UNSIGNED_TYPES
typedef uint8_t U8;
typedef uint16_t U16;
typedef uint32_t U32;
typedef uint64_t U64;
typedef size_t UNK_SIZE;
#endif
#ifndef SIGNED_TYPES
#define SIGNED_TYPES
typedef int8_t S8;
typedef int16_t S16;
typedef int32_t S32;
typedef int64_t S64;
#endif
#ifndef UNKNOWN_TYPES
#define UNKNOWN_TYPES
typedef unsigned char UNK_8;
typedef unsigned short UNK_16;
typedef unsigned int UNK_32;
typedef unsigned long UNK_64;
typedef size_t UNK_SIZE;
#endif
#endif