MeshLib Documentation
Loading...
Searching...
No Matches
MRProgressReadWrite.h
Go to the documentation of this file.
1#pragma once
3#include "MRMeshFwd.h"
4#include <ostream>
5#include <istream>
6
7namespace MR
8{
9
15MRMESH_API bool writeByBlocks( std::ostream& out, const char* data, size_t dataSize, ProgressCallback callback = {}, size_t blockSize = ( size_t( 1 ) << 16 ) );
16
17
23MRMESH_API bool readByBlocks( std::istream& in, char* data, size_t dataSize, ProgressCallback callback = {}, size_t blockSize = ( size_t( 1 ) << 16 ) );
24
25}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
MRMESH_API bool readByBlocks(std::istream &in, char *data, size_t dataSize, ProgressCallback callback={}, size_t blockSize=(size_t(1)<< 16))
read dataSize bytes from in stream to data by blocks blockSize bytes
MRMESH_API bool writeByBlocks(std::ostream &out, const char *data, size_t dataSize, ProgressCallback callback={}, size_t blockSize=(size_t(1)<< 16))
write dataSize bytes from data to out stream by blocks blockSize bytes