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)
24extern "C" {
25#endif
26
27#if !defined(WizardMaxBufferExtent)
28#define WizardMaxBufferExtent 8192
29#endif
30
31typedef enum
32{
35 IOMode
37
38typedef struct _BlobInfo
40
41extern WizardExport void
42 *FileToBlob(const char *,const size_t,size_t *,ExceptionInfo *),
43 *MapBlob(int,const MapMode,const WizardOffsetType,const size_t);
44
46 UnmapBlob(void *,const size_t);
47
48#if defined(__cplusplus) || defined(c_plusplus)
49}
50#endif
51
52#endif
WizardExport void * FileToBlob(const char *, const size_t, size_t *, ExceptionInfo *)
WizardExport WizardBooleanType UnmapBlob(void *, const size_t)
Definition blob.c:1841
MapMode
Definition blob.h:32
@ WriteMode
Definition blob.h:34
@ IOMode
Definition blob.h:35
@ ReadMode
Definition blob.h:33
WizardExport void * MapBlob(int, const MapMode, const WizardOffsetType, const size_t)
Definition blob.c:920
#define WizardExport
ssize_t WizardOffsetType
Definition wizard-type.h:50
WizardBooleanType
Definition wizard-type.h:26