glob_util

Manage blob data.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X       X

Syntax

int glob_util(command[,glob[,parm.N [...]]])
int           command
glob          glob
expr          parm.N

Description

Manages glob data objects.
Command Description
glob_free If glob specified, frees glob. Otherwise frees all globs. Returns number of globs freed.
glob_countReturns number of allocated globs.
glob_sizeReturns the size of the glob.
glob_indexReturns the internal index of the glob.
glob_refsReturns the number of globs referencing the same data.
glob_fileReads a file into a glob and returns the number of bytes read:
glob_util(glob_file,glob,filename);

Writes a blob to a file and returns the number of bytes written:

glob_util(glob_file,glob,filename,true);

Appends a blob to a file and returns the number of bytes written:

glob_util(glob_file,glob,filename,true,true);