Wizard's Toolkit Logo Wizard's Toolkit Sprite
Unix
Mac OS X
Windows
Options
Unix
Windows

Module blob Methods

FileToBlob

FileToBlob() returns the contents of a file as a blob. It returns the file as a blob and its length. If an error occurs, NULL is returned.

The format of the FileToBlob method is:

  void *FileToBlob(const char *filename,const size_t extent,size_t *length,
    ExceptionInfo *exception)

A description of each parameter follows:

blob

FileToBlob() returns the contents of a file as a blob. If an error occurs NULL is returned.

filename

The filename.

extent

The maximum length of the blob.

length

On return, it reflects the actual length of the blob.

exception

Return any errors or warnings in this structure.

GetBlobProperties

GetBlobProperties() returns information about a blob.

The format of the GetBlobProperties method is:

  const struct stat *GetBlobProperties(const BlobInfo *blob_info)

A description of each parameter follows:

blob_info

the blob info.

SyncBlob

SyncBlob() flushes the datastream if it is a file or synchonizes the data attributes if it is an blob.

The format of the SyncBlob method is:

  int SyncBlob(BlobInfo *blob_info)

A description of each parameter follows:

blob_info

the blob info.