SlideIO
2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
src
slideio
imagetools
memory_stream.hpp
1
// This file is part of slideio project.
2
// It is subject to the license terms in the LICENSE file found in the top-level directory
3
// of this distribution and at http://slideio.com/license.html.
4
#pragma once
5
6
#include "openjpeg.h"
7
8
namespace
slideio
9
{
10
class
OPJStreamUserData {
11
public
:
12
OPJStreamUserData(
unsigned
char
* ptr,
size_t
sz) : data(ptr), size(sz), offset(0) {}
13
unsigned
char
* data;
14
size_t
size;
15
size_t
offset;
16
};
17
opj_stream_t* createOPJMemoryStream(OPJStreamUserData* data,
size_t
size,
bool
inputStream);
18
}
slideio
Definition:
exceptions.hpp:15
Generated by
1.9.5