PODS data types

The PODS data types, defined in the podstypes.h file, are described in PODS data types.

Caution

Whenever possible, you should use PODS data types instead of any equivalent data type that may be available in C. By using PODS data types, your code will be insulated from any future changes in the way these data types are defined; it also will make your PODS code more portable.

Table 1. PODS data types

PODS data type*

Description

PODSArray

A one-dimensional array of a specified length. The PODSArray interface supports array manipulation of the array's individual elements, allowing for passing an array from a JavaScript method into a PODS method, or from a PODS method into a JavaScript method. See PODSArray object.

PODSBoolean

A boolean value.

PODSDate

A signed 32-bit integer representing a date and time as a count of the number of seconds elapsed since January 1, 1970 UTC. Negative values indicate points in time before January 1, 1970 UTC.

PODSDouble

The PODSDouble parameter establishes a 64-bit floating-point number.

PODSErr

A short value representing a PODS error number.

PODSInt16

A 16-bit integer value.

PODSInt32

A 32-bit integer value.

PODSString

A character string.

PODSUInt16

An unsigned 16-bit integer value.

PODSUInt32

An unsigned 32-bit integer value.

PODSUInt8

An 8-bit unsigned integer.

PODSVariant

A data type that can accept JavaScript values that may be of any one of several PODS types, without performing any type conversion. PODS data types allowed are:

  • PODSString

  • PODSBoolean

  • PODSDate

  • PODSDouble

  • PODSInt32

  • PODSObject*

  • PODSUInt32

* Default values for PODS data types and codes used to represent PODS data types in the type string that PODSObject object's getMethod( ) returns are detailed in Type strings returned by getMethod( ).