Unit al5Base

Uses
Functions and Procedures
Constants
Variables

Description

Base definitions to interface with Allegro dynamic module.

This unit includes definitions of data types used by Allegro. They're used internally to be sure they're the correct in any platform (i.e. 32bit or 64bit). You may use them if you wish.

Overview

Classes, Interfaces, Objects and Records

Name Description
Record AL_DATA_PTR_T Special union record used to store a integer and a pointer in the same variable.

Types

AL_POINTER = Pointer;
AL_INT8 = ShortInt;
AL_UINT8 = Byte;
AL_INT16 = SmallInt;
AL_UINT16 = Word;
AL_INT32 = LongInt;
AL_UINT32 = LongWord;
AL_INT64 = INT64;
AL_UINT64 = INT64;
AL_BOOL = LongBool;
AL_CHAR = AL_INT8;
AL_UCHAR = AL_UINT8;
AL_SHORT = AL_INT16;
AL_USHORT = AL_UINT16;
AL_INT = AL_INT32;
AL_UINT = AL_UINT32;
AL_LONG = AL_INT32;
AL_ULONG = AL_UINT32;
AL_SIZE_T = AL_UINT32;
AL_INTPTR_T = AL_UINT32;
AL_UINTPTR_T = AL_UINT32;
AL_OFF_T = AL_UINT;
AL_FLOAT = Single;
AL_DOUBLE = Double;
AL_STR = AnsiString;
AL_VOIDptr = AL_POINTER;
AL_STRptr = PChar;
AL_INTptr = ˆAL_INT;
AL_FLOATptr = ˆAL_FLOAT;

Description

Types

AL_POINTER = Pointer;

Generic pointer.

AL_INT8 = ShortInt;

Signed 8bit integer values.

AL_UINT8 = Byte;

Unsigned 8bit integer values.

AL_INT16 = SmallInt;

Signed 16bit integer values.

AL_UINT16 = Word;

Unsigned 16bit integer values.

AL_INT32 = LongInt;

Signed 32bit integer values.

AL_UINT32 = LongWord;

Unsigned 32bit integer values.

AL_INT64 = INT64;

Signed 64bit integer values.

AL_UINT64 = INT64;

Unsigned 64bit integer values.

AL_BOOL = LongBool;

Boolean result.

AL_CHAR = AL_INT8;

Signed 8bit integer.

Note that it isn't Pascal's CHAR type!

AL_UCHAR = AL_UINT8;

Unsigned 8bit integer values.

AL_SHORT = AL_INT16;

Signed 16bit integer values.

AL_USHORT = AL_UINT16;

Unsigned 16bit integer values.

AL_INT = AL_INT32;

Signed 32bit integer values.

AL_UINT = AL_UINT32;

Unsigned 32bit integer values.

AL_LONG = AL_INT32;

Signed 32/64bit integer values.

AL_ULONG = AL_UINT32;

Unsigned 32/64bit integer values.

AL_SIZE_T = AL_UINT32;

size_t equivalent.

AL_INTPTR_T = AL_UINT32;

Fake pointer type. It's needed to use pointers as integer values in some low-level operations.

See also
AL_DATA_PTR_T
Special union record used to store a integer and a pointer in the same variable.
AL_UINTPTR_T = AL_UINT32;

Fake pointer type. It's needed to use pointers as integer values in some low-level operations.

See also
AL_DATA_PTR_T
Special union record used to store a integer and a pointer in the same variable.
AL_OFF_T = AL_UINT;

Another 64bit integer to store sizes.

AL_FLOAT = Single;

Float value.

AL_DOUBLE = Double;

Double value.

AL_STR = AnsiString;

Strings. Used in parameters to convert Pascal's STRING to C's char *.

See also
al5strings
Functions to integrate Pascal String with Allegro AL_STR.
AL_VOIDptr = AL_POINTER;

Pointer.

AL_STRptr = PChar;

Pointer to text strings. Used to convert Pascal's STRING to C char *.

See also
al5strings
Functions to integrate Pascal String with Allegro AL_STR.
AL_INTptr = ˆAL_INT;

Pointer to integer.

AL_FLOATptr = ˆAL_FLOAT;

Pointer to float.


Generated by PasDoc 0.15.0. Generated on 2024-11-10 15:15:06.