Tileson
1.4.0
A helpful json parser for Tiled maps
Loading...
Searching...
No Matches
include
misc
MemoryStream.hpp
Go to the documentation of this file.
1
//
2
// Created by robin on 22.03.2020.
3
//
4
5
#ifndef TILESON_MEMORYSTREAM_HPP
6
#define TILESON_MEMORYSTREAM_HPP
7
8
#include "
MemoryBuffer.hpp
"
9
10
namespace
tson
11
{
12
class
MemoryStream
:
public
std::istream {
13
public
:
14
MemoryStream
(
const
uint8_t *p,
size_t
l) :
15
std::istream(&m_buffer),
16
m_buffer(p, l) {
17
rdbuf(&m_buffer);
18
}
19
20
private
:
21
MemoryBuffer
m_buffer;
22
};
23
}
24
25
#endif
//TILESON_MEMORYSTREAM_HPP
MemoryBuffer.hpp
tson::MemoryBuffer
Definition
MemoryBuffer.hpp:12
tson::MemoryStream
Definition
MemoryStream.hpp:12
tson::MemoryStream::MemoryStream
MemoryStream(const uint8_t *p, size_t l)
Definition
MemoryStream.hpp:14
tson
Definition
Base64.hpp:12
Generated by
1.9.8