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_charSet/Get the datatype of the glob: 0 = binary, 1 = char. If optional parm.1 is 0, the datatype is set to binary, else character.
glob_countReturns number of allocated globs.
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);
glob_free If glob specified, frees glob. Otherwise frees all globs. Returns number of globs freed.
glob_indexReturns the internal index of the glob.
glob_refsReturns the number of globs referencing the same data.
glob_sizeReturns the size of the glob.