Reece Wilson
124038df62
[+] AuConsole::Commands::RemoveCommand [+] EExtendedUsage::eServerAuth [+] SysPanic2 for SysSafeLine hints (backtrace may contain optimized SysPanics, making tracing the true origin difficult) [*] Reworked SysAssertions [*] AuParse::EncodeHex now takes AuMemoryViewRead [*] AuRng::ReadSecureRNG now takes AuMemoryViewWrite [*] AuRng::ReadFastRNG now takes AuMemoryViewWrite
26 lines
625 B
C++
26 lines
625 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Hex.hpp
|
|
Date: 2021-8-28
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Parse
|
|
{
|
|
AUE_DEFINE(EHexDump,
|
|
(
|
|
eString,
|
|
eZeroXSpace,
|
|
eHexEditor,
|
|
eCLiteral,
|
|
eJSLiteral
|
|
));
|
|
|
|
AUKN_SYM void ByteToHex(AuUInt8 val, char(&hex)[2]);
|
|
AUKN_SYM bool HexToInt (const char *hex, AuUInt32 length, AuUInt64 &val);
|
|
|
|
AUKN_SYM bool EncodeHex(Memory::MemoryViewRead view, EHexDump formatting, AuString &out);
|
|
AUKN_SYM bool DecodeHex(const AuString &in, Memory::ByteBuffer &out);
|
|
} |