MagickCore
7.0.10
blob.h
Go to the documentation of this file.
1
/*
2
Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3
dedicated to making software imaging solutions freely available.
4
5
You may not use this file except in compliance with the License.
6
obtain a copy of the License at
7
8
https://imagemagick.org/script/license.php
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
16
Wizard's Toolkit Binary Large OBjects Methods.
17
*/
18
#ifndef _WIZARDSTOOLKIT_BLOB_H
19
#define _WIZARDSTOOLKIT_BLOB_H
20
21
#include "
wizard/exception.h
"
22
23
#if defined(__cplusplus) || defined(c_plusplus)
24
extern
"C"
{
25
#endif
26
27
#if !defined(WizardMaxBufferExtent)
28
#define WizardMaxBufferExtent 8192
29
#endif
30
31
typedef
enum
32
{
33
ReadMode
,
34
WriteMode
,
35
IOMode
36
}
MapMode
;
37
38
typedef
struct
_BlobInfo
39
BlobInfo
;
40
41
extern
WizardExport
void
42
*
FileToBlob
(
const
char
*,
const
size_t
,
size_t
*,
ExceptionInfo
*),
43
*
MapBlob
(
int
,
const
MapMode
,
const
WizardOffsetType
,
const
size_t
);
44
45
extern
WizardExport
WizardBooleanType
46
UnmapBlob
(
void
*,
const
size_t
);
47
48
#if defined(__cplusplus) || defined(c_plusplus)
49
}
50
#endif
51
52
#endif
FileToBlob
WizardExport void * FileToBlob(const char *, const size_t, size_t *, ExceptionInfo *)
UnmapBlob
WizardExport WizardBooleanType UnmapBlob(void *, const size_t)
Definition
blob.c:1841
MapMode
MapMode
Definition
blob.h:32
WriteMode
@ WriteMode
Definition
blob.h:34
IOMode
@ IOMode
Definition
blob.h:35
ReadMode
@ ReadMode
Definition
blob.h:33
MapBlob
WizardExport void * MapBlob(int, const MapMode, const WizardOffsetType, const size_t)
Definition
blob.c:920
exception.h
WizardExport
#define WizardExport
Definition
method-attribute.h:98
_BlobInfo
Definition
blob.c:101
_ExceptionInfo
Definition
exception.c:58
WizardOffsetType
ssize_t WizardOffsetType
Definition
wizard-type.h:50
WizardBooleanType
WizardBooleanType
Definition
wizard-type.h:26
home
cristy
WizardsToolkit-1.0.9
wizard
blob.h
Generated by
1.9.7