MeshLib C Docs
Loading...
Searching...
No Matches
MRProgressReadWrite.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
13typedef struct MR_std_istream MR_std_istream; // Defined in `#include <MRCMisc/iostream.h>`.
14typedef struct MR_std_ostream MR_std_ostream; // Defined in `#include <MRCMisc/iostream.h>`.
15
16
26MRC_API bool MR_writeByBlocks(MR_std_ostream *out, const char *data, MR_uint64_t dataSize, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback, const MR_uint64_t *blockSize);
27
37MRC_API bool MR_readByBlocks(MR_std_istream *in, char *data, MR_uint64_t dataSize, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback, const MR_uint64_t *blockSize);
38
39#ifdef __cplusplus
40} // extern "C"
41#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_ostream MR_std_ostream
Definition MRCtm.h:22
struct MR_std_istream MR_std_istream
Definition MRCtm.h:21
MRC_API bool MR_readByBlocks(MR_std_istream *in, char *data, MR_uint64_t dataSize, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback, const MR_uint64_t *blockSize)
read dataSize bytes from in stream to data by blocks blockSize bytes
MRC_API bool MR_writeByBlocks(MR_std_ostream *out, const char *data, MR_uint64_t dataSize, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback, const MR_uint64_t *blockSize)
write dataSize bytes from data to out stream by blocks blockSize bytes
MR_PassBy
Definition common.h:19
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11