Basic Types: Integers and Ranges

Veil's basic types are those that do not contain repeating groups (arrays, hashes, etc).

Ranges consist of a pair of values and are generally used to initialise the bounds of array and bitmap types. Ranges may not contain nulls.

The int4 type is used to record a simple nullable integer. This is typically used to record the id of the connected user in a session.

The following functions comprise the Veil basic types API:

veil_init_range(text, int4, int4)

function veil_init_range(text, int4, int4) returns int4

This defines a range, and returns the extent of that range.

veil_range(text)

function veil_range(text) returns veil_range_t

This returns the contents of a range. It is intended primarily for interactive use.

veil_int4_set(text, int4)

function veil_int4_set(text, int4) returns int4

Sets an int4 variable to a value, returning that same value.

veil_int4_get(text)

function veil_int4_get(text) returns int4

Returns the value of an int4 variable.

Next: Bitmaps and Bitmap Refs


Generated on Tue Mar 11 10:20:09 2008 for Veil by  doxygen 1.5.4