Tileson 1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
MemoryBuffer.hpp
Go to the documentation of this file.
1//
2// Created by robin on 22.03.2020.
3//
4
5#ifndef TILESON_MEMORYBUFFER_HPP
6#define TILESON_MEMORYBUFFER_HPP
7
8#include <iostream>
9
10namespace tson
11{
12 class MemoryBuffer : public std::basic_streambuf<char> {
13 public:
14 MemoryBuffer(const uint8_t *p, size_t l) {
15 setg((char*)p, (char*)p, (char*)p + l);
16 }
17 };
18}
19
20#endif //TILESON_MEMORYBUFFER_HPP
Definition MemoryBuffer.hpp:12
MemoryBuffer(const uint8_t *p, size_t l)
Definition MemoryBuffer.hpp:14
Definition Base64.hpp:12