|
WizardsToolkit
1.0.7
|
#include "wizard/exception.h"

Go to the source code of this file.
Defines | |
| #define | WizardMaxBufferExtent 0x3c005L |
Typedefs | |
| typedef struct _BlobInfo | BlobInfo |
Enumerations | |
| enum | MapMode { ReadMode, WriteMode, IOMode } |
Functions | |
| WizardExport unsigned char * | FileToBlob (const char *, const size_t, size_t *, ExceptionInfo *) |
| WizardExport void * | MapBlob (int, const MapMode, const WizardOffsetType, const size_t) |
| WizardExport WizardBooleanType | UnmapBlob (void *, const size_t) |
| #define WizardMaxBufferExtent 0x3c005L |
Definition at line 26 of file blob.h.
Referenced by FileToBlob(), and ReadFileChunk().
| WizardExport unsigned char* FileToBlob | ( | const char * | , |
| const size_t | , | ||
| size_t * | , | ||
| ExceptionInfo * | |||
| ) |
Definition at line 492 of file blob.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, fileno, open_utf8(), O_BINARY, ThrowWizardException(), BlobError, lseek, stat, WizardMaxBufferExtent, fstat, Min, AcquireQuantumMemory(), read, RelinquishWizardMemory(), ResizeQuantumMemory(), close, ResourceError, MaxCipherBlocksize, MapBlob(), ReadMode, UnmapBlob(), WizardFalse, and SSIZE_MAX.
Referenced by FileToString(), and FileToStringInfo().
| WizardExport void* MapBlob | ( | int | , |
| const MapMode | , | ||
| const WizardOffsetType | , | ||
| const size_t | |||
| ) |
Definition at line 841 of file blob.c.
References MAP_ANONYMOUS, MAP_PRIVATE, ReadMode, PROT_READ, mmap, WriteMode, PROT_WRITE, MAP_SHARED, IOMode, and MAP_FAILED.
Referenced by FileToBlob(), OpenBlob(), SetBlobExtent(), and ConfigureFileToStringInfo().
| WizardExport WizardBooleanType UnmapBlob | ( | void * | , |
| const size_t | |||
| ) |
Definition at line 1715 of file blob.c.
References munmap, WizardFalse, and WizardTrue.
Referenced by DestroyBlob(), DetachBlob(), FileToBlob(), SetBlobExtent(), DestroyWizardMemory(), and ConfigureFileToStringInfo().