Home Units Hierarchy Routines All identifiers

Unit unaTypes

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Contains definition of base types used in other units. Most used types are: int = int32/64 depending on target CPU bool = LongBool unsigned = Cardinal

Version 2.5.2009.12 - some cleanup

Overview

Classes, Interfaces, Objects and Records

Name Description
record tComplexDouble  
record tComplexFloat  
record uint64Rec unsigned 64 bits integer type defined as two double words record

Types

int8 = shortint;
int16 = smallint;
int32 = longint;
uint8 = byte;
uint16 = word;
uint32 = longword;
uint = LongWord;
pUnsigned = ˆunsigned;
unsigned = Cardinal;
int = LongInt;
pInt = ˆint;
IntPtr = int;
UIntPtr = unsigned;
PLONG = ˆLONG;
LONG = int;
bool = boolean;
pInt8 = ˆint8;
pInt16 = ˆint16;
pInt32 = ˆint32;
pInt64 = ˆint64;
pUint8 = ˆuint8;
pUint16 = ˆuint16;
pUint32 = ˆuint32;
pUint64 = ˆuint64;
float = single;
pFloat = ˆfloat;
aString = AnsiString;
aChar = AnsiChar;
wString = wideString;
paChar = pChar;
pwChar = pWideChar;
waChar = aChar;
waString = aString;
pwaChar = ˆwaChar;
unaAcquireType = int;
tArray = array[0 .. c_max_index_08 - 1] of byte;
pArray = ˆtArray;
taCharArray = array[0 .. c_max_index_08 - 1] of aChar;
paCharArray = ˆtaCharArray;
twCharArray = array[0 .. c_max_index_16 - 1] of wChar;
pwCharArray = ˆtwCharArray;
tInt8Array = array[0 .. c_max_index_08 - 1] of int8;
pInt8Array = ˆtInt8Array;
tUint8Array = tArray;
pUint8Array = ˆtUint8Array;
tInt16Array = array[0 .. c_max_index_16 - 1] of int16;
pInt16Array = ˆtInt16Array;
tUint16Array = array[0 .. c_max_index_16 - 1] of uint16;
pUint16Array = ˆtUint16Array;
tInt32Array = array[0 .. c_max_index_32 - 1] of int32;
pInt32Array = ˆtInt32Array;
tUint32Array = array[0 .. c_max_index_32 - 1] of uint32;
pUint32Array = ˆtUint32Array;
tInt64Array = array[0 .. c_max_index_64 - 1] of int64;
pInt64Array = ˆtInt64Array;
tUint64Array = array[0 .. c_max_index_64 - 1] of uint64;
pUint64Array = ˆtUint64Array;
tUnsignedArray = array[0 .. c_max_index_PTR - 1] of unsigned;
pUnsignedArray = ˆtUnsignedArray;
tPtrArray = array [0 .. c_max_index_PTR - 1] of pointer;
pPtrArray = ˆtPtrArray;
tPaCharArray = array [0 .. c_max_index_PTR - 1] of paChar;
pPaCharArray = ˆtPaCharArray;
tPwCharArray = array [0 .. c_max_index_PTR - 1] of pwChar;
pPwCharArray = ˆtPwCharArray;
tSingleArray = array[0 .. c_max_index_32 - 1] of single;
pSingleArray = ˆtSingleArray;
tFloatArray = tSingleArray;
pFloatArray = ˆtFloatArray;
tFloatArrayPArray = array[0 .. c_max_index_PTR - 1] of pFloatArray;
pFloatArrayPArray = ˆtFloatArrayPArray;
tDoubleArray = array[0 .. c_max_index_64 - 1] of double;
pDoubleArray = ˆtDoubleArray;
tExtendedArray = array[0 .. c_max_index_80 - 1] of extended;
pExtendedArray = ˆtExtendedArray;
pComplexFloat = ˆtComplexFloat;
pComplexDouble = ˆtComplexDouble;
pComplexFloatArray = ˆtComplexFloatArray;
tComplexFloatArray = array[0..c_max_memBlock div sizeof(tComplexFloat) - 1] of tComplexFloat;
pComplexDoubleArray = ˆtComplexDoubleArray;
tComplexDoubleArray = array[0..c_max_memBlock div sizeof(tComplexDouble) - 1] of tComplexDouble;
tTimeout = int;

Constants

c_isDebug = false;
c_max_index_08 = c_max_memBlock;
c_max_index_16 = c_max_memBlock shr 1;
c_max_index_32 = c_max_memBlock shr 2;
c_max_index_64 = c_max_memBlock shr 3;
c_max_index_80 = c_max_memBlock div 10;
c_max_index_PTR = c_max_memBlock div sizeOf(pointer);
c_max_memBlock = $7FFFFFFF;
RT_RCDATAW = #10;

Description

Types

int8 = shortint;

signed 8 bits integer

int16 = smallint;

signed 16 bits integer

int32 = longint;

signed 32 bits integer

uint8 = byte;

unsigned 8 bits integer

uint16 = word;

unsigned 16 bits integer

uint32 = longword;

unsigned 32 bits integer

uint = LongWord;

universal 32 bit unsigned integer

pUnsigned = ˆunsigned;

pointer to value of type "unsigned"

unsigned = Cardinal;

general unsigned integer type, 32 or 64 or more bits depending on compiler

int = LongInt;

general signed integer type, 32 or 64 or more bits depending on compiler

pInt = ˆint;

pointer to a value of type "int"

IntPtr = int;
 
UIntPtr = unsigned;
 
PLONG = ˆLONG;

pointer to type LONG (int)

LONG = int;

another name for type "int"

bool = boolean;

got some problems with LongBool under FPC64 (as of 2.4.2)

pInt8 = ˆint8;

pointer to signed 8 bits integer value

pInt16 = ˆint16;

pointer to signed 16 bits integer value

pInt32 = ˆint32;

pointer to signed 32 bits integer value

pInt64 = ˆint64;

pointer to signed 64 bits integer value

pUint8 = ˆuint8;

pointer to unsigned 8 bits integer value

pUint16 = ˆuint16;

pointer to unsigned 16 bits integer value

pUint32 = ˆuint32;

pointer to unsigned 32 bits integer value

pUint64 = ˆuint64;

pointer to unsigned 64 bits integer value

float = single;

single precision floating-point (4 bytes)

pFloat = ˆfloat;
 
aString = AnsiString;

ansi string (1 char = 1 byte)

aChar = AnsiChar;

ansi char (1 byte)

wString = wideString;

unicode string wide string

paChar = pChar;

pointer to ansi char

pwChar = pWideChar;

pointer to wide char

waChar = aChar;
 
waString = aString;
 
pwaChar = ˆwaChar;
 
unaAcquireType = int;

used as a counter to lock an object

tArray = array[0 .. c_max_index_08 - 1] of byte;

array of bytes (unsigned 8 bits integer values)

pArray = ˆtArray;

pointer to array of bytes (unsigned 8 bits integer values)

taCharArray = array[0 .. c_max_index_08 - 1] of aChar;

array of 1-byte chars

paCharArray = ˆtaCharArray;

pointer to array of 1-byte chars

twCharArray = array[0 .. c_max_index_16 - 1] of wChar;

array of 2-bytes chars

pwCharArray = ˆtwCharArray;

pointer to array of 2-bytes chars

tInt8Array = array[0 .. c_max_index_08 - 1] of int8;

array of signed 8 bit integers

pInt8Array = ˆtInt8Array;

pointer to array of signed 8 bit integers

tUint8Array = tArray;

array of unsigned 8 bits integer values

pUint8Array = ˆtUint8Array;

pointer to array of unsigned 8 bits integer values

tInt16Array = array[0 .. c_max_index_16 - 1] of int16;

array of signed 16 bit integers

pInt16Array = ˆtInt16Array;

pointer to array of signed 16 bit integers

tUint16Array = array[0 .. c_max_index_16 - 1] of uint16;

array of signed 16 bit integers

pUint16Array = ˆtUint16Array;

pointer to array of signed 16 bit integers

tInt32Array = array[0 .. c_max_index_32 - 1] of int32;

array of signed 32 bit integers

pInt32Array = ˆtInt32Array;

pointer to array of signed 32 bit integers

tUint32Array = array[0 .. c_max_index_32 - 1] of uint32;

array of unsigned 32 bit integers

pUint32Array = ˆtUint32Array;

pointer to array of unsigned 32 bit integers

tInt64Array = array[0 .. c_max_index_64 - 1] of int64;

array of signed 64 bit integers

pInt64Array = ˆtInt64Array;

pointer to array of signed 64 bit integers

tUint64Array = array[0 .. c_max_index_64 - 1] of uint64;

array of unsigned 64 bit integers

pUint64Array = ˆtUint64Array;

pointer to array of signed 64 bit integers

tUnsignedArray = array[0 .. c_max_index_PTR - 1] of unsigned;

array of unsigned 32/64 bit integers

pUnsignedArray = ˆtUnsignedArray;

pointer to array of unsigned 32/64 bit integers

tPtrArray = array [0 .. c_max_index_PTR - 1] of pointer;

array of pointers (32/64/more bits integers)

pPtrArray = ˆtPtrArray;

pointer to array of pointers (32/64/more bits integers)

tPaCharArray = array [0 .. c_max_index_PTR - 1] of paChar;

array of paChars

pPaCharArray = ˆtPaCharArray;

pointer to array of paChars

tPwCharArray = array [0 .. c_max_index_PTR - 1] of pwChar;

array of pwChars

pPwCharArray = ˆtPwCharArray;

pointer to array of pwChars

tSingleArray = array[0 .. c_max_index_32 - 1] of single;

array of single precision floating-point (4 bytes) values

pSingleArray = ˆtSingleArray;

pointer to array of single precision floating-point (4 bytes) values

tFloatArray = tSingleArray;

array of single precision floating-point (4 bytes) values

pFloatArray = ˆtFloatArray;

pointer to array of single precision floating-point (4 bytes) values

tFloatArrayPArray = array[0 .. c_max_index_PTR - 1] of pFloatArray;

array of pointers to arrays of single precision floating-point (4 bytes) values

pFloatArrayPArray = ˆtFloatArrayPArray;

pointer to array of pointers to arrays of single precision floating-point (4 bytes) values

tDoubleArray = array[0 .. c_max_index_64 - 1] of double;

array of double precision floating-point (8 bytes) values

pDoubleArray = ˆtDoubleArray;

pointer to array of double precision floating-point (8 bytes) values

tExtendedArray = array[0 .. c_max_index_80 - 1] of extended;

array of extended floating-point (10 bytes) values

pExtendedArray = ˆtExtendedArray;

pointer to array of extended floating-point (10 bytes) values

pComplexFloat = ˆtComplexFloat;

Complex single float

pComplexDouble = ˆtComplexDouble;

Complex double float

pComplexFloatArray = ˆtComplexFloatArray;
 
tComplexFloatArray = array[0..c_max_memBlock div sizeof(tComplexFloat) - 1] of tComplexFloat;
 
pComplexDoubleArray = ˆtComplexDoubleArray;
 
tComplexDoubleArray = array[0..c_max_memBlock div sizeof(tComplexDouble) - 1] of tComplexDouble;
 
tTimeout = int;

timeout type, currently is signed integer

Constants

c_isDebug = false;
 
c_max_index_08 = c_max_memBlock;
 
c_max_index_16 = c_max_memBlock shr 1;
 
c_max_index_32 = c_max_memBlock shr 2;
 
c_max_index_64 = c_max_memBlock shr 3;
 
c_max_index_80 = c_max_memBlock div 10;
 
c_max_index_PTR = c_max_memBlock div sizeOf(pointer);
 
c_max_memBlock = $7FFFFFFF;
 
RT_RCDATAW = #10;

INFINITE will be passed as -1 Not so wide version of RT_RCDATA

Author

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09