summaryrefslogtreecommitdiff
path: root/include/converter.h
blob: c8fac1bfe09ac555f990d20060bb0b58b13bbb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "settings.h"

#include <string>
#include <iostream>
#include <cstdint>
#include <sstream>

namespace TwilightEditor
{
	namespace Converter
	{
		uint32_t u32(std::string& value);
		uint16_t u16(std::string& value);
		uint8_t u8(std::string& value);

		void flag(uint8_t* value, std::string& flag, bool set = true);

		std::string toStr(uint8_t* data, offsetType type, std::size_t length, uint8_t flag = 0);
	}
}