SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
VFONT.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
#include <span>
5
#include <string_view>
6
#include <vector>
7
8
#include <
sourcepp/Math.h
>
9
10
namespace
vcryptpp::VFONT
{
11
12
constexpr
std::string_view
SIGNATURE
=
"VFONT1"
;
13
14
constexpr
uint8_t
MAGIC
= 167;
15
16
[[nodiscard]] std::vector<std::byte>
encrypt
(std::span<const std::byte> data, uint8_t saltLength = 2);
17
18
[[nodiscard]] std::vector<std::byte>
decrypt
(std::span<const std::byte> data);
19
20
}
// namespace vcryptpp::VFONT
Math.h
vcryptpp::VFONT
Definition
VFONT.h:10
vcryptpp::VFONT::MAGIC
constexpr uint8_t MAGIC
Definition
VFONT.h:14
vcryptpp::VFONT::SIGNATURE
constexpr std::string_view SIGNATURE
Definition
VFONT.h:12
vcryptpp::VFONT::encrypt
std::vector< std::byte > encrypt(std::span< const std::byte > data, uint8_t saltLength=2)
Definition
VFONT.cpp:11
vcryptpp::VFONT::decrypt
std::vector< std::byte > decrypt(std::span< const std::byte > data)
Definition
VFONT.cpp:42
include
vcryptpp
VFONT.h
Generated on
for SourcePP by
1.14.0