mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-03 13:15:36 +01:00
Use some C++17 features
This commit is contained in:
parent
45555c0e57
commit
0485e1877c
20 changed files with 170 additions and 245 deletions
|
|
@ -6,17 +6,17 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "common_types.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "common_types.h"
|
||||
|
||||
namespace Sirit {
|
||||
|
||||
class Stream {
|
||||
public:
|
||||
public:
|
||||
explicit Stream(std::vector<u8>& bytes);
|
||||
~Stream();
|
||||
|
||||
|
||||
void Write(std::string string);
|
||||
|
||||
void Write(u64 value);
|
||||
|
|
@ -27,7 +27,7 @@ public:
|
|||
|
||||
void Write(u8 value);
|
||||
|
||||
private:
|
||||
private:
|
||||
std::vector<u8>& bytes;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue