18#ifndef MAGICKCORE_BLOB_H
19#define MAGICKCORE_BLOB_H
21#if defined(__cplusplus) || defined(c_plusplus)
25#define MagickMaxBufferExtent 524288
26#define MagickMinBufferExtent 16384
37 (*CustomStreamHandler)(
unsigned char *,
const size_t,
void *);
39typedef MagickOffsetType
40 (*CustomStreamSeeker)(
const MagickOffsetType,
const int,
void *);
42typedef MagickOffsetType
43 (*CustomStreamTeller)(
void *);
48#include "MagickCore/image.h"
49#include "MagickCore/stream.h"
55extern MagickExport FILE
56 *GetBlobFileHandle(
const Image *) magick_attribute((__pure__));
58extern MagickExport
Image
63extern MagickExport MagickBooleanType
66 GetBlobError(
const Image *) magick_attribute((__pure__)),
70 IsBlobExempt(
const Image *) magick_attribute((__pure__)),
71 IsBlobSeekable(
const Image *) magick_attribute((__pure__)),
72 IsBlobTemporary(
const Image *) magick_attribute((__pure__));
74extern MagickExport MagickSizeType
75 GetBlobSize(
const Image *);
77extern MagickExport StreamHandler
78 GetBlobStreamHandler(
const Image *) magick_attribute((__pure__));
80extern MagickExport
void
81 *GetBlobStreamData(
const Image *) magick_attribute((__pure__)),
84 *FileToBlob(
const char *,
const size_t,
size_t *,
ExceptionInfo *),
89 SetBlobExempt(
Image *,
const MagickBooleanType),
96#if defined(__cplusplus) || defined(c_plusplus)