MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
blob-private.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 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://www.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  MagickCore Binary Large OBjects private methods.
17 */
18 #ifndef MAGICKCORE_BLOB_PRIVATE_H
19 #define MAGICKCORE_BLOB_PRIVATE_H
20 
21 #include "MagickCore/image.h"
22 #include "MagickCore/stream.h"
24 
25 #if defined(__cplusplus) || defined(c_plusplus)
26 extern "C" {
27 #endif
28 
29 #define MagickMinBlobExtent 32767L
30 #if defined(MAGICKCORE_HAVE_FSEEKO)
31 # define fseek fseeko
32 # define ftell ftello
33 #endif
34 
35 typedef enum
36 {
44 } BlobMode;
45 
46 typedef enum
47 {
57 } StreamType;
58 
60  *CloneBlobInfo(const BlobInfo *),
62 
63 extern MagickExport char
64  *ReadBlobString(Image *,char *);
65 
66 extern MagickExport const struct stat
67  *GetBlobProperties(const Image *);
68 
69 extern MagickExport const void
70  *ReadBlobStream(Image *,const size_t,void *,ssize_t *);
71 
72 extern MagickExport double
74 
75 extern MagickExport float
77 
78 extern MagickExport int
79  EOFBlob(const Image *),
81 
83  CloseBlob(Image *),
85  OpenBlob(const ImageInfo *,Image *,const BlobMode,ExceptionInfo *),
87  UnmapBlob(void *,const size_t);
88 
90  SeekBlob(Image *,const MagickOffsetType,const int),
91  TellBlob(const Image *);
92 
96 
97 extern MagickExport signed int
101 
102 extern MagickExport signed short
106 
107 extern MagickExport ssize_t
108  ReadBlob(Image *,const size_t,void *),
109  WriteBlob(Image *,const size_t,const void *),
110  WriteBlobByte(Image *,const unsigned char),
111  WriteBlobFloat(Image *,const float),
112  WriteBlobLong(Image *,const unsigned int),
114  WriteBlobShort(Image *,const unsigned short),
115  WriteBlobSignedLong(Image *,const signed int),
116  WriteBlobLSBLong(Image *,const unsigned int),
117  WriteBlobLSBShort(Image *,const unsigned short),
118  WriteBlobLSBSignedLong(Image *,const signed int),
119  WriteBlobLSBSignedShort(Image *,const signed short),
120  WriteBlobMSBLong(Image *,const unsigned int),
121  WriteBlobMSBShort(Image *,const unsigned short),
122  WriteBlobMSBSignedShort(Image *,const signed short),
123  WriteBlobString(Image *,const char *);
124 
125 extern MagickExport unsigned int
126  ReadBlobLong(Image *),
129 
130 extern MagickExport unsigned short
131  ReadBlobShort(Image *),
134 
135 extern MagickExport void
136  AttachBlob(BlobInfo *,const void *,const size_t),
138  *DetachBlob(BlobInfo *),
141  *MapBlob(int,const MapMode,const MagickOffsetType,const size_t),
142  MSBOrderLong(unsigned char *,const size_t),
143  MSBOrderShort(unsigned char *,const size_t);
144 
145 #if defined(__cplusplus) || defined(c_plusplus)
146 }
147 #endif
148 
149 #endif
MagickExport MagickBooleanType SetBlobExtent(Image *, const MagickSizeType)
MagickExport ssize_t WriteBlobString(Image *, const char *)
Definition: blob.c:6063
MagickExport int ReadBlobByte(Image *)
Definition: blob.c:3634
MagickExport float ReadBlobFloat(Image *)
Definition: blob.c:3742
MagickExport ssize_t WriteBlobMSBSignedShort(Image *, const signed short)
MagickExport int EOFBlob(const Image *)
MagickExport ssize_t WriteBlobSignedLong(Image *, const signed int)
MagickExport ssize_t WriteBlob(Image *, const size_t, const void *)
MagickExport signed short ReadBlobLSBSignedShort(Image *)
MagickExport ssize_t WriteBlobLSBLong(Image *, const unsigned int)
BlobMode
Definition: blob-private.h:35
MagickExport BlobInfo * CloneBlobInfo(const BlobInfo *)
ssize_t MagickOffsetType
Definition: magick-type.h:127
MagickExport unsigned int ReadBlobLong(Image *)
MagickExport void GetBlobInfo(BlobInfo *)
MagickExport ssize_t WriteBlobLSBShort(Image *, const unsigned short)
MagickExport void MSBOrderShort(unsigned char *, const size_t)
Definition: blob.c:2934
Definition: image.h:151
MagickExport ssize_t WriteBlobLSBSignedLong(Image *, const signed int)
MagickExport void * DetachBlob(BlobInfo *)
MagickExport const struct stat * GetBlobProperties(const Image *)
Definition: blob.c:1654
MagickExport unsigned int ReadBlobLSBLong(Image *)
MagickExport signed int ReadBlobLSBSignedLong(Image *)
MagickExport ssize_t WriteBlobLongLong(Image *, const MagickSizeType)
MagickBooleanType
Definition: magick-type.h:156
MagickExport ssize_t WriteBlobByte(Image *, const unsigned char)
MagickExport ssize_t WriteBlobMSBShort(Image *, const unsigned short)
MagickExport void AttachBlob(BlobInfo *, const void *, const size_t)
MagickExport ssize_t ReadBlob(Image *, const size_t, void *)
MagickExport MagickBooleanType CloseBlob(Image *)
size_t MagickSizeType
Definition: magick-type.h:128
MagickExport ssize_t WriteBlobLong(Image *, const unsigned int)
MagickExport ssize_t WriteBlobShort(Image *, const unsigned short)
MagickExport void DisassociateBlob(Image *)
MagickExport const void * ReadBlobStream(Image *, const size_t, void *, ssize_t *)
Definition: blob.c:4449
MagickExport void AttachCustomStream(BlobInfo *, CustomStreamInfo *)
MagickExport char * ReadBlobString(Image *, char *)
Definition: blob.c:4507
MagickExport MagickOffsetType SeekBlob(Image *, const MagickOffsetType, const int)
MagickExport MagickBooleanType OpenBlob(const ImageInfo *, Image *, const BlobMode, ExceptionInfo *)
MagickExport signed int ReadBlobSignedLong(Image *)
Definition: blob.c:4361
MagickExport unsigned short ReadBlobShort(Image *)
MagickExport signed int ReadBlobMSBSignedLong(Image *)
MagickExport unsigned int ReadBlobMSBLong(Image *)
Definition: blob.c:4133
MagickExport signed short ReadBlobSignedShort(Image *)
Definition: blob.c:4399
MagickExport void MSBOrderLong(unsigned char *, const size_t)
MagickExport signed short ReadBlobMSBSignedShort(Image *)
MapMode
Definition: blob.h:27
MagickExport MagickOffsetType TellBlob(const Image *)
Definition: blob.c:5141
MagickExport ssize_t WriteBlobMSBLong(Image *, const unsigned int)
MagickExport MagickBooleanType UnmapBlob(void *, const size_t)
Definition: blob.c:5220
MagickExport ssize_t WriteBlobFloat(Image *, const float)
MagickExport BlobInfo * ReferenceBlob(BlobInfo *)
Definition: blob.c:4566
MagickExport MagickSizeType ReadBlobLongLong(Image *)
#define MagickExport
MagickExport unsigned short ReadBlobMSBShort(Image *)
Definition: blob.c:4237
StreamType
Definition: blob-private.h:46
MagickExport MagickBooleanType DiscardBlobBytes(Image *, const MagickSizeType)
MagickExport ssize_t WriteBlobLSBSignedShort(Image *, const signed short)
MagickExport double ReadBlobDouble(Image *)
Definition: blob.c:3703
MagickExport unsigned short ReadBlobLSBShort(Image *)
MagickExport MagickSizeType ReadBlobMSBLongLong(Image *)
Definition: blob.c:4183
MagickExport void * MapBlob(int, const MapMode, const MagickOffsetType, const size_t)