This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define NOMINMAX | |
#include <fcntl.h> | |
#include <io.h> | |
#include <clocale> | |
#include <cstdio> | |
#include <vector> | |
#include <algorithm> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <io.h> | |
#include <fcntl.h> | |
#include <Windows.h> | |
auto open_file_for_read_alow_delete(const wchar_t filename[]) { | |
struct result { | |
FILE* fp; | |
long long size; | |
int error; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <algorithm> | |
#include <utility> | |
#include <string> | |
#include <regex> | |
template<typename C> class EncodeCodePointToUTF { | |
public: | |
C encoded[(4 / sizeof(C)) + 1] = {}; | |
int length = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "CircularBuffer.h" | |
#include <climits> | |
#include <cassert> | |
#include <algorithm> | |
CircularBuffer::CircularBuffer() = default; | |
CircularBuffer::~CircularBuffer() = default; | |
CircularBuffer::CircularBuffer(void* buffer_address, size_t length) |
NewerOlder