![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
AcquireFileLock() acquires a lock for a file. The format of the AcquireFileLock method is:
WizardBooleanType AcquireFileLock(FileInfo *file_info,
ExceptionInfo *exception)
A description of each parameter follows: file_infoThe file info. exceptionReturn any errors or warnings in this structure. AcquireFileInfo() opens the file for reading or writing and returns a FileInfo structure. The format of the AcquireFileInfo method is:
FileInfo *AcquireFileInfo(const char *path,const char *relative_path,
const FileMode mode,ExceptionInfo *exception)
A description of each parameter follows: pathThe file path. relative_pathThe path relative to the default path. modeThe file I/O mode. exceptionReturn any errors or warnings in this structure. DestroyFile() destroys the file on disk. The format of the DestroyFile method is:
WizardBooleanType DestroyFile(FileInfo *file_info,
Exceptioninfo *exception)
A description of each parameter follows: file_infoThe file info. exceptionReturn any errors or warnings in this structure. DestroyFileInfo() destroys the file info structure. The format of the DestroyFileInfo method is: FileInfo *DestroyFileInfo(FileInfo *file_info) A description of each parameter follows: pathThe file name. GetFileDescriptor() returns the file descriptor. The format of the GetFileDescriptor method is: int GetFileDescriptor(const FileInfo *file_info) A description of each parameter follows: file_infoThe file info. GetFilePath() returns the file path. The format of the GetFilePath method is: const const char *GetFilePath(const FileInfo *file_info) A description of each parameter follows: file_infoThe file info. GetFileproperties() returns the file properties. The format of the GetFileProperties method is: const struct stat *GetFileProperties(const FileInfo *file_info) A description of each parameter follows: file_infoThe file info. ReadFileByte() returns the character read as an unsigned char cast to an integer or EOF on end of file or error. The format of the ReadFileByte method is: int ReadFileByte(FileInfo *file_info) A description of each parameter follows. file_infothe blob info. ReadFileChunk() reliably reads a chunk of data from a file. It returns WizardTrue if all the data requested is read otherwise WizardFalse. The format of the ReadFileChunk method is:
WizardBooleanType ReadFileChunk(FileInfo *file_info,const void *data,
const size_t length)
A description of each parameter follows: file_infoThe file info. dataThe data. lengthThe data length in bytes. ReadFile16Bits() reads a 16-bit quantity in least-significant byte first order and returns it. The format of the ReadFile16Bits method is:
WizardBooleanType ReadFile16Bits(FileInfo *file_info,
unsigned short *value)
A description of each parameter follows. file_infoThe image. valueThe value. ReadFile32Bits() reads a 32-bit quantity in least-significant byte first order and returns it. The format of the ReadFile32Bits method is:
WizardBooleanType ReadFile32Bits(FileInfo *file_info,
unsigned long *value)
A description of each parameter follows. file_infoThe image. valueThe value. ReadFile64Bits() reads a 64-bit quantity in least-significant byte first order and returns it. The format of the ReadFile64Bits method is:
WizardBooleanType ReadFile64Bits(FileInfo *file_info,
WizardSizeType *value)
A description of each parameter follows. file_infoThe image. valueThe value. RelinquishFileLock() relinquishes a file lock. The format of the RelinquishFileLock method is:
WizardBooleanType RelinquishFileLock(FileInfo *file_info,
ExceptionInfo *exception)
A description of each parameter follows: file_infoThe file info. exceptionReturn any errors or warnings in this structure. WriteFileChunk() reliably writes data to a file. The format of the WriteFileChunk method is:
WizardBooleanType WriteFileChunk(FileInfo *file_info,const void *data,
const size_t length)
A description of each parameter follows: file_infoThe file info. dataThe data. lenthThe data length in bytes. WriteFile16Bits() writes a long value as a 16-bit quantity in least-significant byte first order. The format of the WriteFile16Bits method is:
WizardBooleanType WriteFile16Bits(FileInfo *file_info,
const unsigned short value)
A description of each parameter follows. valueSpecifies the value to write. file_infoThe image. WriteFile32Bits() writes a long value as a 32-bit quantity in least-significant byte first order. The format of the WriteFile32Bits method is:
WizardBooleanType WriteFile32Bits(FileInfo *file_info,
const unsigned long value)
A description of each parameter follows. valueSpecifies the value to write. file_infoThe image. WriteFile64Bits() writes a long value as a 64-bit quantity in least-significant byte first order. The format of the WriteFile64Bits method is:
WizardBooleanType WriteFile64Bits(FileInfo *file_info,
const WizardSizeType value)
A description of each parameter follows. valueSpecifies the value to write. file_infoThe image. |