2 Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
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.
16 MagickCore Binary Large OBjects private methods.
18 #ifndef _MAGICKCORE_BLOB_PRIVATE_H
19 #define _MAGICKCORE_BLOB_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include "magick/image.h"
26 #include "magick/stream.h"
28 #define MagickMinBlobExtent 32767L
54 *(*BlobFifo)(const Image *,const void *,const size_t);
56 extern MagickExport BlobInfo
57 *CloneBlobInfo(const BlobInfo *),
58 *ReferenceBlob(BlobInfo *);
60 extern MagickExport char
61 *ReadBlobString(Image *,char *);
63 extern MagickExport const struct stat
64 *GetBlobProperties(const Image *);
66 extern MagickExport double
67 ReadBlobDouble(Image *);
69 extern MagickExport float
70 ReadBlobFloat(Image *);
72 extern MagickExport int
73 EOFBlob(const Image *),
74 ReadBlobByte(Image *);
76 extern MagickExport MagickBooleanType
78 OpenBlob(const ImageInfo *,Image *,const BlobMode,ExceptionInfo *),
79 SetBlobExtent(Image *,const MagickSizeType),
80 UnmapBlob(void *,const size_t);
82 extern MagickExport MagickOffsetType
83 SeekBlob(Image *,const MagickOffsetType,const int),
84 TellBlob(const Image *);
86 extern MagickExport MagickSizeType
87 ReadBlobLongLong(Image *);
89 extern MagickExport ssize_t
90 ReadBlob(Image *,const size_t,unsigned char *),
91 WriteBlob(Image *,const size_t,const unsigned char *),
92 WriteBlobByte(Image *,const unsigned char),
93 WriteBlobFloat(Image *,const float),
94 WriteBlobLong(Image *,const unsigned int),
95 WriteBlobShort(Image *,const unsigned short),
96 WriteBlobLSBLong(Image *,const unsigned int),
97 WriteBlobLSBShort(Image *,const unsigned short),
98 WriteBlobMSBLong(Image *,const unsigned int),
99 WriteBlobMSBShort(Image *,const unsigned short),
100 WriteBlobString(Image *,const char *);
102 extern MagickExport unsigned char
103 *DetachBlob(BlobInfo *),
104 *MapBlob(int,const MapMode,const MagickOffsetType,const size_t);
106 extern MagickExport unsigned int
107 ReadBlobLong(Image *),
108 ReadBlobLSBLong(Image *),
109 ReadBlobMSBLong(Image *);
111 extern MagickExport unsigned short
112 ReadBlobShort(Image *),
113 ReadBlobLSBShort(Image *),
114 ReadBlobMSBShort(Image *);
116 extern MagickExport void
117 AttachBlob(BlobInfo *,const void *,const size_t),
118 GetBlobInfo(BlobInfo *),
119 MSBOrderLong(unsigned char *,const size_t),
120 MSBOrderShort(unsigned char *,const size_t);
122 #if defined(__cplusplus) || defined(c_plusplus)