plibsys 0.0.5
ptypes.h File Reference

Types definitions. More...

#include <plibsysconfig.h>
#include <pmacros.h>

Go to the source code of this file.

Macros

#define PSIZE_MODIFIER   ""
 Platform dependent length modifier for conversion specifiers of psize or pssize type for printing and scanning values.
 
#define PSSIZE_FORMAT   "i"
 Platform dependent conversion specifier of pssize type for printing and scanning values.
 
#define PSIZE_FORMAT   "u"
 Platform dependent conversion specifier of psize type for printing and scanning values.
 
#define P_MAXSIZE   P_MAXUINT
 Maximum value of a psize type.
 
#define P_MINSSIZE   P_MININT
 Minimum value of a pssize type.
 
#define P_MAXSSIZE   P_MAXINT
 Maximum value of a pssize type.
 
#define PINTPTR_MODIFIER   ""
 Platform dependent length modifier for conversion specifiers of pintptr or puintptr type for printing and scanning values.
 
#define PINTPTR_FORMAT   "i"
 Platform dependent conversion specifier of pintptr type for printing and scanning values.
 
#define PUINTPTR_FORMAT   "u"
 Platform dependent conversion specifier of puintptr type for printing and scanning values.
 
#define P_INT_TO_POINTER(i)
 Casts an int to a pointer.
 
#define P_POINTER_TO_INT(p)
 Casts a pointer to an int.
 
#define PPOINTER_TO_INT(p)
 Casts a ppointer to a pint value.
 
#define PPOINTER_TO_UINT(p)
 Casts a ppointer to a pint value.
 
#define PINT_TO_POINTER(i)
 Casts a pint value to a ppointer.
 
#define PUINT_TO_POINTER(u)
 Casts a puint value to a ppointer.
 
#define PSIZE_TO_POINTER(i)
 Casts a psize value to a ppointer.
 
#define PPOINTER_TO_PSIZE(p)
 Casts a ppointer to a psize value.
 
#define P_MININT8   ((pint8) 0x80)
 Min value for a 8-bit int.
 
#define P_MAXINT8   ((pint8) 0x7F)
 Max value for a 8-bit int.
 
#define P_MAXUINT8   ((puint8) 0xFF)
 Max value for a 8-bit unsigned int.
 
#define P_MININT16   ((pint16) 0x8000)
 Min value for a 16-bit int.
 
#define P_MAXINT16   ((pint16) 0x7FFF)
 Max value for a 16-bit int.
 
#define P_MAXUINT16   ((puint16) 0xFFFF)
 Max value for a 16-bit unsigned int.
 
#define P_MININT32   ((pint32) 0x80000000)
 Min value for a 32-bit int.
 
#define P_MAXINT32   ((pint32) 0x7FFFFFFF)
 Max value for a 32-bit int.
 
#define P_MAXUINT32   ((puint32) 0xFFFFFFFF)
 Max value for a 32-bit unsigned int.
 
#define P_MININT64   ((pint64) 0x8000000000000000LL)
 Min value for a 64-bit int.
 
#define P_MAXINT64   ((pint64) 0x7FFFFFFFFFFFFFFFLL)
 Max value for a 64-bit int.
 
#define P_MAXUINT64   ((puint64) 0xFFFFFFFFFFFFFFFFULL)
 Max value for a 64-bit unsigned int.
 
#define PINT16_MODIFIER   "h"
 Platform dependent length modifier for conversion specifiers of pint16 or puint16 type for printing and scanning values.
 
#define PINT16_FORMAT   "hi"
 Platform dependent conversion specifier of pint16 type for printing and scanning values.
 
#define PUINT16_FORMAT   "hu"
 Platform dependent conversion specifier of puint16 type for printing and scanning values.
 
#define PINT32_MODIFIER   ""
 Platform dependent length modifier for conversion specifiers of pint32 or puint32 type for printing and scanning values.
 
#define PINT32_FORMAT   "i"
 Platform dependent conversion specifier of pint32 type for printing and scanning values.
 
#define PUINT32_FORMAT   "u"
 Platform dependent conversion specifier of puint32 type for printing and scanning values.
 
#define PINT64_MODIFIER   "I64"
 Platform dependent length modifier for conversion specifiers of pint64 or puint64 type for printing and scanning values.
 
#define PINT64_FORMAT   "I64i"
 Platform dependent conversion specifier of pint64 type for printing and scanning values.
 
#define PUINT64_FORMAT   "I64u"
 Platform dependent conversion specifier of puint64 type for printing and scanning values.
 
#define POFFSET_MODIFIER   PINT64_MODIFIER
 Platform dependent length modifier for conversion specifiers of poffset type for printing and scanning values.
 
#define POFFSET_FORMAT   PINT64_FORMAT
 Platform dependent conversion specifier of poffset type for printing and scanning values.
 
#define P_LITTLE_ENDIAN   1234
 Little endian mark.
 
#define P_BIG_ENDIAN   4321
 Big endian mark.
 
#define PINT16_TO_LE(val)
 Swaps a pint16 variable from the host to the little endian order.
 
#define PUINT16_TO_LE(val)
 Swaps a puint16 variable from the host to the little the endian order.
 
#define PINT16_TO_BE(val)
 Swaps a pint16 variable from the host to the big endian order.
 
#define PUINT16_TO_BE(val)
 Swaps a puint16 variable from the host to the big endian order.
 
#define PINT32_TO_LE(val)
 Swaps a pint32 variable from the host to the little endian order.
 
#define PUINT32_TO_LE(val)
 Swaps a puint32 variable from the host to the little endian order.
 
#define PINT32_TO_BE(val)
 Swaps a pint32 variable from the host to the big endian order.
 
#define PUINT32_TO_BE(val)
 Swaps a puint32 variable from the host to the big endian order.
 
#define PINT64_TO_LE(val)
 Swaps a pint64 variable from the host to the little endian order.
 
#define PUINT64_TO_LE(val)
 Swaps a puint64 variable from the host to the little endian order.
 
#define PINT64_TO_BE(val)
 Swaps a pint64 variable from the host to the big endian order.
 
#define PUINT64_TO_BE(val)
 Swaps a puint64 variable from the host to the big endian order.
 
#define PLONG_TO_LE(val)
 Swaps a plong variable from the host to the little endian order.
 
#define PULONG_TO_LE(val)
 Swaps a pulong variable from the host to the little endian order.
 
#define PLONG_TO_BE(val)
 Swaps a plong variable from the host to the big endian order.
 
#define PULONG_TO_BE(val)
 Swaps a pulong variable from the host to the big endian order.
 
#define PSIZE_TO_LE(val)
 Swaps a psize variable from the host to the little endian order.
 
#define PSSIZE_TO_LE(val)
 Swaps a pssize variable from the host to the little endian order.
 
#define PSIZE_TO_BE(val)
 Swaps a psize variable from the host to the big endian order.
 
#define PSSIZE_TO_BE(val)
 Swaps a pssize variable from the host to the big endian order.
 
#define PINT_TO_LE(val)
 Swaps a pint variable from the host to the little endian order.
 
#define PUINT_TO_LE(val)
 Swaps a puint variable from the host to the little endian order.
 
#define PINT_TO_BE(val)
 Swaps a pint variable from the host to the big endian order.
 
#define PUINT_TO_BE(val)
 Swaps a puint variable from the host to the big endian order.
 
#define PUINT16_SWAP_BYTES(val)
 Swaps a 16-bit unsigned int.
 
#define PUINT32_SWAP_BYTES(val)
 Swaps a 32-bit unsigned int.
 
#define PUINT64_SWAP_BYTES(val)
 Swaps a 64-bit unsigned int.
 
#define PINT16_FROM_LE(val)
 Swaps a 16-bit int from the little endian byte order to the host one.
 
#define PUINT16_FROM_LE(val)
 Swaps a 16-bit unsigned int from the little endian byte order to the host one.
 
#define PINT16_FROM_BE(val)
 Swaps a 16-bit int from the big endian byte order to the host one.
 
#define PUINT16_FROM_BE(val)
 Swaps a 16-bit unsigned int from the big endian byte order to the host one.
 
#define PINT32_FROM_LE(val)
 Swaps a 32-bit int from the little endian byte order to the host one.
 
#define PUINT32_FROM_LE(val)
 Swaps a 32-bit unsigned int from the little endian byte order to the host one.
 
#define PINT32_FROM_BE(val)
 Swaps a 32-bit int from the big endian byte order to the host one.
 
#define PUINT32_FROM_BE(val)
 Swaps a 32-bit unsigned int from the big endian byte order to the host one.
 
#define PINT64_FROM_LE(val)
 Swaps a 64-bit int from the little endian byte order to the host one.
 
#define PUINT64_FROM_LE(val)
 Swaps a 64-bit unsigned int from the little endian byte order to the host one.
 
#define PINT64_FROM_BE(val)
 Swaps a 64-bit int from the big endian byte order to the host one.
 
#define PUINT64_FROM_BE(val)
 Swaps a 64-bit unsigned int from the big endian byte order to the host one.
 
#define PLONG_FROM_LE(val)
 Swaps a long int from the little endian byte order to the host one.
 
#define PULONG_FROM_LE(val)
 Swaps an unsigned long int from the little endian byte order to the host one.
 
#define PLONG_FROM_BE(val)
 Swaps a long int from the big endian byte order to the host one.
 
#define PULONG_FROM_BE(val)
 Swaps an unsigned long int from the big endian byte order to the host one.
 
#define PINT_FROM_LE(val)
 Swaps a pint from the little endian byte order to the host one.
 
#define PUINT_FROM_LE(val)
 Swaps a puint from the little endian byte order to the host one.
 
#define PINT_FROM_BE(val)
 Swaps a pint from the big endian byte order to the host one.
 
#define PUINT_FROM_BE(val)
 Swaps a puint from the big endian byte order to the host one.
 
#define PSIZE_FROM_LE(val)
 Swaps a psize from the little endian byte order to the host one.
 
#define PSSIZE_FROM_LE(val)
 Swaps a pssize from the little endian byte order to the host one.
 
#define PSIZE_FROM_BE(val)
 Swaps a psize from the big endian byte order to the host one.
 
#define PSSIZE_FROM_BE(val)
 Swaps a pssize from the big endian byte order to the host one.
 
#define p_ntohl(val)
 Swaps a long int from the network byte order to the host one.
 
#define p_ntohs(val)
 Swaps a short int from the network byte order to the host one.
 
#define p_htonl(val)
 Swaps a long int from the host byte order to the network one.
 
#define p_htons(val)
 Swaps a short int from the host byte order to the network one.
 
#define FALSE   (0)
 Type definition for a false boolean value.
 
#define TRUE   (!FALSE)
 Type definition for a true boolean value.
 

Typedefs

typedef signed char pint8
 Type for signed 8 bit.
 
typedef unsigned char puint8
 Type for unsigned 8 bit.
 
typedef signed short pint16
 Type for signed 16 bit.
 
typedef unsigned short puint16
 Type for unsigned 16 bit.
 
typedef signed int pint32
 Type for signed 32 bit.
 
typedef unsigned int puint32
 Type for unsigned 32 bit.
 
typedef signed __int64 pint64
 Type for signed 64 bit.
 
typedef unsigned __int64 puint64
 Type for unsigned 64 bit.
 
typedef void * ppointer
 Type for a pointer.
 
typedef const void * pconstpointer
 Type for a const pointer.
 
typedef signed int pboolean
 Type for a bool.
 
typedef char pchar
 Type for a char.
 
typedef short pshort
 Type for a short.
 
typedef int pint
 Type for an int.
 
typedef long plong
 Type for a long.
 
typedef unsigned char puchar
 Type for an unsigned char.
 
typedef unsigned short pushort
 Type for an unsigned short.
 
typedef unsigned int puint
 Type for an unsigned int.
 
typedef unsigned long pulong
 Type for an unsigned long.
 
typedef float pfloat
 Type for a float.
 
typedef double pdouble
 Type for a double precision float.
 
typedef signed int pssize
 Type for a platform independent signed size_t.
 
typedef unsigned int psize
 Type for a platform independent size_t.
 
typedef signed int pintptr
 Type for a platform independent signed pointer represented by an integer.
 
typedef unsigned int puintptr
 Type for a platform independent unsigned pointer represented by an integer.
 
typedef pint64 poffset
 Platform independent offset_t definition.
 
typedef void * P_HANDLE
 Platform independent system handle.
 
typedef pboolean(* PTraverseFunc) (ppointer key, ppointer value, ppointer user_data)
 Function to traverse through a key-value container.
 
typedef void(* PFunc) (ppointer data, ppointer user_data)
 General purpose function.
 
typedef void(* PDestroyFunc) (ppointer data)
 Object destroy notification function.
 
typedef pint(* PCompareFunc) (pconstpointer a, pconstpointer b)
 Compares two values.
 
typedef pint(* PCompareDataFunc) (pconstpointer a, pconstpointer b, ppointer data)
 Compares two values with additional data.
 

Detailed Description

Types definitions.

Author
Alexander Saprykin

Every operating system in pair with a compiler has its own set of data types. Here you can find unified platform independent data types which guarantee the same bit-size on every supported platform: pint8, pint16, pint32, pint64 and their unsigned variants. Also other types are defined for convinience: ppointer, pboolean, pint, plong, pdouble and more.

Along with the types, length and format modifiers are defined. They can be used to print and scan data from/to a variable.

Sometimes it is useful to use an integer variable as a pointer, i.e. to prevent memory allocation when using hash tables or trees. Use special macros for that case: PINT_TO_POINTER, PPOINTER_TO_INT and their variants. Note that it will not work with 64-bit data types.

To check data type limits use P_MIN* and P_MAX* macros.

If you need to check system endianness compare the P_BYTE_ORDER definition with the P_LITTLE_ENDIAN or P_BIG_ENDIAN macro.

To convert between the little and big endian byte orders use the Px_TO_LE, Px_TO_BE, Px_FROM_LE and Px_FROM_BE macros. Macros for the network<->host byte order conversion are also provided: p_ntohl, p_ntohs, p_ntohs and p_ntohl. All the described above macros depend on the target system endianness. Use PUINTx_SWAP_BYTES to manually swap data types independently from the endianness.

You can also find some of the function definitions used within the library.

Definition in file ptypes.h.

Macro Definition Documentation

◆ FALSE

#define FALSE   (0)

Type definition for a false boolean value.


Definition at line 1059 of file ptypes.h.

◆ P_BIG_ENDIAN

#define P_BIG_ENDIAN   4321

Big endian mark.


Definition at line 506 of file ptypes.h.

◆ p_htonl

#define p_htonl ( val)
Value:
#define PUINT32_TO_BE(val)
Swaps a puint32 variable from the host to the big endian order.
Definition ptypes.h:708

Swaps a long int from the host byte order to the network one.

Parameters
valValue to swap.
Returns
Swapped long int.
Since
0.0.1

Definition at line 1047 of file ptypes.h.

◆ p_htons

#define p_htons ( val)
Value:
#define PUINT16_TO_BE(val)
Swaps a puint16 variable from the host to the big endian order.
Definition ptypes.h:704

Swaps a short int from the host byte order to the network one.

Parameters
valValue to swap.
Returns
Swapped short int.
Since
0.0.1

Definition at line 1055 of file ptypes.h.

◆ P_INT_TO_POINTER

#define P_INT_TO_POINTER ( i)
Value:
((void *) (long) (i))

Casts an int to a pointer.

Parameters
iVariable to cast.
Returns
Casted variable.
Since
0.0.1

Definition at line 306 of file ptypes.h.

◆ P_LITTLE_ENDIAN

#define P_LITTLE_ENDIAN   1234

Little endian mark.


Definition at line 504 of file ptypes.h.

◆ P_MAXINT16

#define P_MAXINT16   ((pint16) 0x7FFF)

Max value for a 16-bit int.


Definition at line 377 of file ptypes.h.

◆ P_MAXINT32

#define P_MAXINT32   ((pint32) 0x7FFFFFFF)

Max value for a 32-bit int.


Definition at line 384 of file ptypes.h.

◆ P_MAXINT64

#define P_MAXINT64   ((pint64) 0x7FFFFFFFFFFFFFFFLL)

Max value for a 64-bit int.


Definition at line 391 of file ptypes.h.

◆ P_MAXINT8

#define P_MAXINT8   ((pint8) 0x7F)

Max value for a 8-bit int.


Definition at line 370 of file ptypes.h.

◆ P_MAXSIZE

#define P_MAXSIZE   P_MAXUINT

Maximum value of a psize type.

Definition at line 228 of file ptypes.h.

◆ P_MAXSSIZE

#define P_MAXSSIZE   P_MAXINT

Maximum value of a pssize type.

Definition at line 230 of file ptypes.h.

◆ P_MAXUINT16

#define P_MAXUINT16   ((puint16) 0xFFFF)

Max value for a 16-bit unsigned int.


Definition at line 379 of file ptypes.h.

◆ P_MAXUINT32

#define P_MAXUINT32   ((puint32) 0xFFFFFFFF)

Max value for a 32-bit unsigned int.


Definition at line 386 of file ptypes.h.

◆ P_MAXUINT64

#define P_MAXUINT64   ((puint64) 0xFFFFFFFFFFFFFFFFULL)

Max value for a 64-bit unsigned int.


Definition at line 393 of file ptypes.h.

◆ P_MAXUINT8

#define P_MAXUINT8   ((puint8) 0xFF)

Max value for a 8-bit unsigned int.


Definition at line 372 of file ptypes.h.

◆ P_MININT16

#define P_MININT16   ((pint16) 0x8000)

Min value for a 16-bit int.


Definition at line 375 of file ptypes.h.

◆ P_MININT32

#define P_MININT32   ((pint32) 0x80000000)

Min value for a 32-bit int.


Definition at line 382 of file ptypes.h.

◆ P_MININT64

#define P_MININT64   ((pint64) 0x8000000000000000LL)

Min value for a 64-bit int.


Definition at line 389 of file ptypes.h.

◆ P_MININT8

#define P_MININT8   ((pint8) 0x80)

Min value for a 8-bit int.


Definition at line 368 of file ptypes.h.

◆ P_MINSSIZE

#define P_MINSSIZE   P_MININT

Minimum value of a pssize type.

Definition at line 229 of file ptypes.h.

◆ p_ntohl

#define p_ntohl ( val)
Value:
#define PUINT32_FROM_BE(val)
Swaps a 32-bit unsigned int from the big endian byte order to the host one.
Definition ptypes.h:889

Swaps a long int from the network byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped long int.
Since
0.0.1

Definition at line 1031 of file ptypes.h.

◆ p_ntohs

#define p_ntohs ( val)
Value:
#define PUINT16_FROM_BE(val)
Swaps a 16-bit unsigned int from the big endian byte order to the host one.
Definition ptypes.h:854

Swaps a short int from the network byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped short int.
Since
0.0.1

Definition at line 1039 of file ptypes.h.

◆ P_POINTER_TO_INT

#define P_POINTER_TO_INT ( p)
Value:
((int) (long) (p))

Casts a pointer to an int.

Parameters
pPointer to cast.
Returns
Casted pointer.
Since
0.0.1

Definition at line 307 of file ptypes.h.

◆ PINT16_FORMAT

#define PINT16_FORMAT   "hi"

Platform dependent conversion specifier of pint16 type for printing and scanning values.

Definition at line 475 of file ptypes.h.

◆ PINT16_FROM_BE

#define PINT16_FROM_BE ( val)
Value:
(PINT16_TO_BE (val))
#define PINT16_TO_BE(val)
Swaps a pint16 variable from the host to the big endian order.
Definition ptypes.h:703

Swaps a 16-bit int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 16-bit int.
Since
0.0.1

Definition at line 845 of file ptypes.h.

◆ PINT16_FROM_LE

#define PINT16_FROM_LE ( val)
Value:
(PINT16_TO_LE (val))
#define PINT16_TO_LE(val)
Swaps a pint16 variable from the host to the little endian order.
Definition ptypes.h:701

Swaps a 16-bit int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 16-bit int.
Since
0.0.1

Definition at line 828 of file ptypes.h.

◆ PINT16_MODIFIER

#define PINT16_MODIFIER   "h"

Platform dependent length modifier for conversion specifiers of pint16 or puint16 type for printing and scanning values.

It is a string literal, but doesn't include the percent sign so you can add precision and length modifiers and append a conversion specifier.

Definition at line 470 of file ptypes.h.

◆ PINT16_TO_BE

#define PINT16_TO_BE ( val)
Value:
#define PUINT16_SWAP_BYTES(val)
Swaps a 16-bit unsigned int.
Definition ptypes.h:789
signed short pint16
Type for signed 16 bit.
Definition ptypes.h:77

Swaps a pint16 variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 703 of file ptypes.h.

◆ PINT16_TO_LE

#define PINT16_TO_LE ( val)
Value:
((pint16) (val))

Swaps a pint16 variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 701 of file ptypes.h.

◆ PINT32_FORMAT

#define PINT32_FORMAT   "i"

Platform dependent conversion specifier of pint32 type for printing and scanning values.

Definition at line 479 of file ptypes.h.

◆ PINT32_FROM_BE

#define PINT32_FROM_BE ( val)
Value:
(PINT32_TO_BE (val))
#define PINT32_TO_BE(val)
Swaps a pint32 variable from the host to the big endian order.
Definition ptypes.h:707

Swaps a 32-bit int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 32-bit int.
Since
0.0.1

Definition at line 880 of file ptypes.h.

◆ PINT32_FROM_LE

#define PINT32_FROM_LE ( val)
Value:
(PINT32_TO_LE (val))
#define PINT32_TO_LE(val)
Swaps a pint32 variable from the host to the little endian order.
Definition ptypes.h:705

Swaps a 32-bit int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 32-bit int.
Since
0.0.1

Definition at line 863 of file ptypes.h.

◆ PINT32_MODIFIER

#define PINT32_MODIFIER   ""

Platform dependent length modifier for conversion specifiers of pint32 or puint32 type for printing and scanning values.

It is a string literal, but doesn't include the percent sign so you can add precision and length modifiers and append a conversion specifier.

Definition at line 478 of file ptypes.h.

◆ PINT32_TO_BE

#define PINT32_TO_BE ( val)
Value:
signed int pint32
Type for signed 32 bit.
Definition ptypes.h:81
#define PUINT32_SWAP_BYTES(val)
Swaps a 32-bit unsigned int.
Definition ptypes.h:798

Swaps a pint32 variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 707 of file ptypes.h.

◆ PINT32_TO_LE

#define PINT32_TO_LE ( val)
Value:
((pint32) (val))

Swaps a pint32 variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 705 of file ptypes.h.

◆ PINT64_FORMAT

#define PINT64_FORMAT   "I64i"

Platform dependent conversion specifier of pint64 type for printing and scanning values.

Definition at line 484 of file ptypes.h.

◆ PINT64_FROM_BE

#define PINT64_FROM_BE ( val)
Value:
(PINT64_TO_BE (val))
#define PINT64_TO_BE(val)
Swaps a pint64 variable from the host to the big endian order.
Definition ptypes.h:711

Swaps a 64-bit int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 64-bit int.
Since
0.0.1

Definition at line 914 of file ptypes.h.

◆ PINT64_FROM_LE

#define PINT64_FROM_LE ( val)
Value:
(PINT64_TO_LE (val))
#define PINT64_TO_LE(val)
Swaps a pint64 variable from the host to the little endian order.
Definition ptypes.h:709

Swaps a 64-bit int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 64-bit int.
Since
0.0.1

Definition at line 897 of file ptypes.h.

◆ PINT64_MODIFIER

#define PINT64_MODIFIER   "I64"

Platform dependent length modifier for conversion specifiers of pint64 or puint64 type for printing and scanning values.

It is a string literal, but doesn't include the percent sign so you can add precision and length modifiers and append a conversion specifier.

Definition at line 483 of file ptypes.h.

◆ PINT64_TO_BE

#define PINT64_TO_BE ( val)
Value:
signed __int64 pint64
Type for signed 64 bit.
Definition ptypes.h:96
#define PUINT64_SWAP_BYTES(val)
Swaps a 64-bit unsigned int.
Definition ptypes.h:810

Swaps a pint64 variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 711 of file ptypes.h.

◆ PINT64_TO_LE

#define PINT64_TO_LE ( val)
Value:
((pint64) (val))

Swaps a pint64 variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 709 of file ptypes.h.

◆ PINT_FROM_BE

#define PINT_FROM_BE ( val)
Value:
(PINT_TO_BE (val))
#define PINT_TO_BE(val)
Swaps a pint variable from the host to the big endian order.
Definition ptypes.h:737

Swaps a pint from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped pint.
Since
0.0.1

Definition at line 981 of file ptypes.h.

◆ PINT_FROM_LE

#define PINT_FROM_LE ( val)
Value:
(PINT_TO_LE (val))
#define PINT_TO_LE(val)
Swaps a pint variable from the host to the little endian order.
Definition ptypes.h:735

Swaps a pint from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped pint.
Since
0.0.1

Definition at line 965 of file ptypes.h.

◆ PINT_TO_BE

#define PINT_TO_BE ( val)
Value:
((pint) PINT32_TO_BE (val))
int pint
Type for an int.
Definition ptypes.h:120

Swaps a pint variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 737 of file ptypes.h.

◆ PINT_TO_LE

#define PINT_TO_LE ( val)
Value:
((pint) PINT32_TO_LE (val))

Swaps a pint variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 735 of file ptypes.h.

◆ PINT_TO_POINTER

#define PINT_TO_POINTER ( i)
Value:
((ppointer) (plong) (i))
void * ppointer
Type for a pointer.
Definition ptypes.h:109
long plong
Type for a long.
Definition ptypes.h:122

Casts a pint value to a ppointer.

Parameters
ipint to cast.
Returns
Casted pint.
Since
0.0.1

Definition at line 310 of file ptypes.h.

◆ PINTPTR_FORMAT

#define PINTPTR_FORMAT   "i"

Platform dependent conversion specifier of pintptr type for printing and scanning values.

Definition at line 291 of file ptypes.h.

◆ PINTPTR_MODIFIER

#define PINTPTR_MODIFIER   ""

Platform dependent length modifier for conversion specifiers of pintptr or puintptr type for printing and scanning values.

It is a string literal, but doesn't include the percent sign so you can add precision and length modifiers and append a conversion specifier.

Definition at line 290 of file ptypes.h.

◆ PLONG_FROM_BE

#define PLONG_FROM_BE ( val)
Value:
(PLONG_TO_BE (val))
#define PLONG_TO_BE(val)
Swaps a plong variable from the host to the big endian order.
Definition ptypes.h:721

Swaps a long int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped long int.
Since
0.0.1

Definition at line 948 of file ptypes.h.

◆ PLONG_FROM_LE

#define PLONG_FROM_LE ( val)
Value:
(PLONG_TO_LE (val))
#define PLONG_TO_LE(val)
Swaps a plong variable from the host to the little endian order.
Definition ptypes.h:719

Swaps a long int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped long int.
Since
0.0.1

Definition at line 931 of file ptypes.h.

◆ PLONG_TO_BE

#define PLONG_TO_BE ( val)
Value:

Swaps a plong variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 721 of file ptypes.h.

◆ PLONG_TO_LE

#define PLONG_TO_LE ( val)
Value:

Swaps a plong variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 719 of file ptypes.h.

◆ POFFSET_FORMAT

#define POFFSET_FORMAT   PINT64_FORMAT

Platform dependent conversion specifier of poffset type for printing and scanning values.

Definition at line 499 of file ptypes.h.

◆ POFFSET_MODIFIER

#define POFFSET_MODIFIER   PINT64_MODIFIER

Platform dependent length modifier for conversion specifiers of poffset type for printing and scanning values.

It is a string literal, but doesn't include the percent sign so you can add precision and length modifiers and append a conversion specifier.

Definition at line 498 of file ptypes.h.

◆ PPOINTER_TO_INT

#define PPOINTER_TO_INT ( p)
Value:
((pint) ((plong) (p)))

Casts a ppointer to a pint value.

Parameters
pppointer to cast.
Returns
Casted ppointer.
Since
0.0.1

Definition at line 308 of file ptypes.h.

◆ PPOINTER_TO_PSIZE

#define PPOINTER_TO_PSIZE ( p)
Value:
((psize) (p))
unsigned int psize
Type for a platform independent size_t.
Definition ptypes.h:224

Casts a ppointer to a psize value.


Definition at line 365 of file ptypes.h.

◆ PPOINTER_TO_UINT

#define PPOINTER_TO_UINT ( p)
Value:
((puint) ((pulong) (p)))
unsigned int puint
Type for an unsigned int.
Definition ptypes.h:129
unsigned long pulong
Type for an unsigned long.
Definition ptypes.h:131

Casts a ppointer to a pint value.

Parameters
pppointer to cast.
Returns
Casted ppointer.
Since
0.0.1

Definition at line 309 of file ptypes.h.

◆ PSIZE_FORMAT

#define PSIZE_FORMAT   "u"

Platform dependent conversion specifier of psize type for printing and scanning values.

Definition at line 227 of file ptypes.h.

◆ PSIZE_FROM_BE

#define PSIZE_FROM_BE ( val)
Value:
(PSIZE_TO_BE (val))
#define PSIZE_TO_BE(val)
Swaps a psize variable from the host to the big endian order.
Definition ptypes.h:732

Swaps a psize from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped psize.
Since
0.0.1

Definition at line 1013 of file ptypes.h.

◆ PSIZE_FROM_LE

#define PSIZE_FROM_LE ( val)
Value:
(PSIZE_TO_LE (val))
#define PSIZE_TO_LE(val)
Swaps a psize variable from the host to the little endian order.
Definition ptypes.h:730

Swaps a psize from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped psize.
Since
0.0.1

Definition at line 997 of file ptypes.h.

◆ PSIZE_MODIFIER

#define PSIZE_MODIFIER   ""

Platform dependent length modifier for conversion specifiers of psize or pssize type for printing and scanning values.

It is a string literal, but doesn't include the percent sign so you can add precision and length modifiers and append a conversion specifier.

psize size_val = 256;
printf ("%#" PSIZE_MODIFIER "x", size_val);
#define PSIZE_MODIFIER
Platform dependent length modifier for conversion specifiers of psize or pssize type for printing and...
Definition ptypes.h:225

Definition at line 225 of file ptypes.h.

◆ PSIZE_TO_BE

#define PSIZE_TO_BE ( val)
Value:

Swaps a psize variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 732 of file ptypes.h.

◆ PSIZE_TO_LE

#define PSIZE_TO_LE ( val)
Value:
#define PUINT32_TO_LE(val)
Swaps a puint32 variable from the host to the little endian order.
Definition ptypes.h:706

Swaps a psize variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 730 of file ptypes.h.

◆ PSIZE_TO_POINTER

#define PSIZE_TO_POINTER ( i)
Value:
((ppointer) ((psize) (i)))

Casts a psize value to a ppointer.


Definition at line 363 of file ptypes.h.

◆ PSSIZE_FORMAT

#define PSSIZE_FORMAT   "i"

Platform dependent conversion specifier of pssize type for printing and scanning values.

pssize size_val = 100;
printf ("%" PSSIZE_FORMAT, size_val);
signed int pssize
Type for a platform independent signed size_t.
Definition ptypes.h:223
#define PSSIZE_FORMAT
Platform dependent conversion specifier of pssize type for printing and scanning values.
Definition ptypes.h:226

Definition at line 226 of file ptypes.h.

◆ PSSIZE_FROM_BE

#define PSSIZE_FROM_BE ( val)
Value:
(PSSIZE_TO_BE (val))
#define PSSIZE_TO_BE(val)
Swaps a pssize variable from the host to the big endian order.
Definition ptypes.h:733

Swaps a pssize from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped pssize.
Since
0.0.1

Definition at line 1021 of file ptypes.h.

◆ PSSIZE_FROM_LE

#define PSSIZE_FROM_LE ( val)
Value:
(PSSIZE_TO_LE (val))
#define PSSIZE_TO_LE(val)
Swaps a pssize variable from the host to the little endian order.
Definition ptypes.h:731

Swaps a pssize from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped pssize.
Since
0.0.1

Definition at line 1005 of file ptypes.h.

◆ PSSIZE_TO_BE

#define PSSIZE_TO_BE ( val)
Value:

Swaps a pssize variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 733 of file ptypes.h.

◆ PSSIZE_TO_LE

#define PSSIZE_TO_LE ( val)
Value:

Swaps a pssize variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 731 of file ptypes.h.

◆ PUINT16_FORMAT

#define PUINT16_FORMAT   "hu"

Platform dependent conversion specifier of puint16 type for printing and scanning values.

Definition at line 476 of file ptypes.h.

◆ PUINT16_FROM_BE

#define PUINT16_FROM_BE ( val)
Value:

Swaps a 16-bit unsigned int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 16-bit unsigned int.
Since
0.0.1

Definition at line 854 of file ptypes.h.

◆ PUINT16_FROM_LE

#define PUINT16_FROM_LE ( val)
Value:
#define PUINT16_TO_LE(val)
Swaps a puint16 variable from the host to the little the endian order.
Definition ptypes.h:702

Swaps a 16-bit unsigned int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 16-bit unsigned int.
Since
0.0.1

Definition at line 837 of file ptypes.h.

◆ PUINT16_SWAP_BYTES

#define PUINT16_SWAP_BYTES ( val)
Value:
((puint16) (((puint16) (val)) >> 8 | ((puint16) (val)) << 8))
unsigned short puint16
Type for unsigned 16 bit.
Definition ptypes.h:79

Swaps a 16-bit unsigned int.

Parameters
valValue to swap.
Returns
Swapped 16-bit unsigned int.
Since
0.0.1

Definition at line 789 of file ptypes.h.

◆ PUINT16_TO_BE

#define PUINT16_TO_BE ( val)
Value:

Swaps a puint16 variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 704 of file ptypes.h.

◆ PUINT16_TO_LE

#define PUINT16_TO_LE ( val)
Value:
((puint16) (val))

Swaps a puint16 variable from the host to the little the endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 702 of file ptypes.h.

◆ PUINT32_FORMAT

#define PUINT32_FORMAT   "u"

Platform dependent conversion specifier of puint32 type for printing and scanning values.

Definition at line 480 of file ptypes.h.

◆ PUINT32_FROM_BE

#define PUINT32_FROM_BE ( val)
Value:

Swaps a 32-bit unsigned int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 32-bit unsigned int.
Since
0.0.1

Definition at line 889 of file ptypes.h.

◆ PUINT32_FROM_LE

#define PUINT32_FROM_LE ( val)
Value:

Swaps a 32-bit unsigned int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 32-bit unsigned int.
Since
0.0.1

Definition at line 872 of file ptypes.h.

◆ PUINT32_SWAP_BYTES

#define PUINT32_SWAP_BYTES ( val)
Value:
((puint32) ( \
(((puint32) (val)) >> 24) | \
((((puint32) (val)) << 8) & ((puint32) 0x00FF0000U)) | \
((((puint32) (val)) >> 8) & ((puint32) 0x0000FF00U)) | \
(((puint32) (val)) << 24)))
unsigned int puint32
Type for unsigned 32 bit.
Definition ptypes.h:83

Swaps a 32-bit unsigned int.

Parameters
valValue to swap.
Returns
Swapped 32-bit unsigned int.
Since
0.0.1

Definition at line 798 of file ptypes.h.

◆ PUINT32_TO_BE

#define PUINT32_TO_BE ( val)
Value:

Swaps a puint32 variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 708 of file ptypes.h.

◆ PUINT32_TO_LE

#define PUINT32_TO_LE ( val)
Value:
((puint32) (val))

Swaps a puint32 variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 706 of file ptypes.h.

◆ PUINT64_FORMAT

#define PUINT64_FORMAT   "I64u"

Platform dependent conversion specifier of puint64 type for printing and scanning values.

Definition at line 485 of file ptypes.h.

◆ PUINT64_FROM_BE

#define PUINT64_FROM_BE ( val)
Value:
#define PUINT64_TO_BE(val)
Swaps a puint64 variable from the host to the big endian order.
Definition ptypes.h:712

Swaps a 64-bit unsigned int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 64-bit unsigned int.
Since
0.0.1

Definition at line 923 of file ptypes.h.

◆ PUINT64_FROM_LE

#define PUINT64_FROM_LE ( val)
Value:
#define PUINT64_TO_LE(val)
Swaps a puint64 variable from the host to the little endian order.
Definition ptypes.h:710

Swaps a 64-bit unsigned int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped 64-bit unsigned int.
Since
0.0.1

Definition at line 906 of file ptypes.h.

◆ PUINT64_SWAP_BYTES

#define PUINT64_SWAP_BYTES ( val)
Value:
((puint64) ( \
(((puint64) (val)) >> 56) | \
((((puint64) (val)) << 40) & ((puint64) 0x00FF000000000000ULL)) | \
((((puint64) (val)) << 24) & ((puint64) 0x0000FF0000000000ULL)) | \
((((puint64) (val)) << 8) & ((puint64) 0x000000FF00000000ULL)) | \
((((puint64) (val)) >> 8) & ((puint64) 0x00000000FF000000ULL)) | \
((((puint64) (val)) >> 24) & ((puint64) 0x0000000000FF0000ULL)) | \
((((puint64) (val)) >> 40) & ((puint64) 0x000000000000FF00ULL)) | \
(((puint64) (val)) << 56)))
unsigned __int64 puint64
Type for unsigned 64 bit.
Definition ptypes.h:97

Swaps a 64-bit unsigned int.

Parameters
valValue to swap.
Returns
Swapped 64-bit unsigned int.
Since
0.0.1

Definition at line 810 of file ptypes.h.

◆ PUINT64_TO_BE

#define PUINT64_TO_BE ( val)
Value:

Swaps a puint64 variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 712 of file ptypes.h.

◆ PUINT64_TO_LE

#define PUINT64_TO_LE ( val)
Value:
((puint64) (val))

Swaps a puint64 variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 710 of file ptypes.h.

◆ PUINT_FROM_BE

#define PUINT_FROM_BE ( val)
Value:
(PUINT_TO_BE (val))
#define PUINT_TO_BE(val)
Swaps a puint variable from the host to the big endian order.
Definition ptypes.h:738

Swaps a puint from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped puint.
Since
0.0.1

Definition at line 989 of file ptypes.h.

◆ PUINT_FROM_LE

#define PUINT_FROM_LE ( val)
Value:
(PUINT_TO_LE (val))
#define PUINT_TO_LE(val)
Swaps a puint variable from the host to the little endian order.
Definition ptypes.h:736

Swaps a puint from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped puint.
Since
0.0.1

Definition at line 973 of file ptypes.h.

◆ PUINT_TO_BE

#define PUINT_TO_BE ( val)
Value:

Swaps a puint variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 738 of file ptypes.h.

◆ PUINT_TO_LE

#define PUINT_TO_LE ( val)
Value:

Swaps a puint variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 736 of file ptypes.h.

◆ PUINT_TO_POINTER

#define PUINT_TO_POINTER ( u)
Value:
((ppointer) (pulong) (u))

Casts a puint value to a ppointer.

Parameters
upuint to cast.
Returns
Casted puint.
Since
0.0.1

Definition at line 311 of file ptypes.h.

◆ PUINTPTR_FORMAT

#define PUINTPTR_FORMAT   "u"

Platform dependent conversion specifier of puintptr type for printing and scanning values.

Definition at line 292 of file ptypes.h.

◆ PULONG_FROM_BE

#define PULONG_FROM_BE ( val)
Value:
(PULONG_TO_BE (val))
#define PULONG_TO_BE(val)
Swaps a pulong variable from the host to the big endian order.
Definition ptypes.h:722

Swaps an unsigned long int from the big endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped unsigned long int.
Since
0.0.1

Definition at line 957 of file ptypes.h.

◆ PULONG_FROM_LE

#define PULONG_FROM_LE ( val)
Value:
(PULONG_TO_LE (val))
#define PULONG_TO_LE(val)
Swaps a pulong variable from the host to the little endian order.
Definition ptypes.h:720

Swaps an unsigned long int from the little endian byte order to the host one.

Parameters
valValue to swap.
Returns
Swapped unsigned long int.
Since
0.0.1

Definition at line 940 of file ptypes.h.

◆ PULONG_TO_BE

#define PULONG_TO_BE ( val)
Value:

Swaps a pulong variable from the host to the big endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 722 of file ptypes.h.

◆ PULONG_TO_LE

#define PULONG_TO_LE ( val)
Value:

Swaps a pulong variable from the host to the little endian order.

Parameters
valValue to swap.
Returns
Swapped value.
Since
0.0.1

Definition at line 720 of file ptypes.h.

◆ TRUE

#define TRUE   (!FALSE)

Type definition for a true boolean value.


Definition at line 1064 of file ptypes.h.

Typedef Documentation

◆ P_HANDLE

typedef void* P_HANDLE

Platform independent system handle.

Definition at line 1070 of file ptypes.h.

◆ pboolean

typedef signed int pboolean

Type for a bool.


Definition at line 114 of file ptypes.h.

◆ pchar

typedef char pchar

Type for a char.


Definition at line 116 of file ptypes.h.

◆ PCompareDataFunc

typedef pint(* PCompareDataFunc) (pconstpointer a, pconstpointer b, ppointer data)

Compares two values with additional data.

Parameters
aFirst value to compare.
bSecond value to compare.
dataAddition data, may be NULL.
Returns
-1 if the first value is less than the second, 1 if the first value is greater than the second, 0 otherwise.
Since
0.0.1

Definition at line 1118 of file ptypes.h.

◆ PCompareFunc

typedef pint(* PCompareFunc) (pconstpointer a, pconstpointer b)

Compares two values.

Parameters
aFirst value to compare.
bSecond value to compare.
Returns
-1 if the first value is less than the second, 1 if the first value is greater than the second, 0 otherwise.
Since
0.0.1

Definition at line 1107 of file ptypes.h.

◆ pconstpointer

typedef const void* pconstpointer

Type for a const pointer.


Definition at line 111 of file ptypes.h.

◆ PDestroyFunc

typedef void(* PDestroyFunc) (ppointer data)

Object destroy notification function.

Parameters
dataPointer to an object to be destroyed.
Since
0.0.1

Definition at line 1097 of file ptypes.h.

◆ pdouble

typedef double pdouble

Type for a double precision float.


Definition at line 136 of file ptypes.h.

◆ pfloat

typedef float pfloat

Type for a float.


Definition at line 134 of file ptypes.h.

◆ PFunc

typedef void(* PFunc) (ppointer data, ppointer user_data)

General purpose function.

Parameters
dataMain argument related to a context value.
user_dataAdditional (maybe NULL) user-provided data.
Since
0.0.1

Definition at line 1090 of file ptypes.h.

◆ pint

typedef int pint

Type for an int.


Definition at line 120 of file ptypes.h.

◆ pint16

typedef signed short pint16

Type for signed 16 bit.

Definition at line 77 of file ptypes.h.

◆ pint32

typedef signed int pint32

Type for signed 32 bit.

Definition at line 81 of file ptypes.h.

◆ pint64

typedef signed __int64 pint64

Type for signed 64 bit.

Definition at line 96 of file ptypes.h.

◆ pint8

typedef signed char pint8

Type for signed 8 bit.


Definition at line 73 of file ptypes.h.

◆ pintptr

typedef signed int pintptr

Type for a platform independent signed pointer represented by an integer.

Definition at line 288 of file ptypes.h.

◆ plong

typedef long plong

Type for a long.


Definition at line 122 of file ptypes.h.

◆ poffset

typedef pint64 poffset

Platform independent offset_t definition.

Definition at line 296 of file ptypes.h.

◆ ppointer

typedef void* ppointer

Type for a pointer.


Definition at line 109 of file ptypes.h.

◆ pshort

typedef short pshort

Type for a short.


Definition at line 118 of file ptypes.h.

◆ psize

typedef unsigned int psize

Type for a platform independent size_t.

Definition at line 224 of file ptypes.h.

◆ pssize

typedef signed int pssize

Type for a platform independent signed size_t.

Definition at line 223 of file ptypes.h.

◆ PTraverseFunc

typedef pboolean(* PTraverseFunc) (ppointer key, ppointer value, ppointer user_data)

Function to traverse through a key-value container.

Parameters
keyThe key of an item.
valueThe value of the item.
user_dataData provided by a user, maybe NULL.
Returns
FALSE to continue traversing, TRUE to stop it.
Since
0.0.1

Definition at line 1080 of file ptypes.h.

◆ puchar

typedef unsigned char puchar

Type for an unsigned char.


Definition at line 125 of file ptypes.h.

◆ puint

typedef unsigned int puint

Type for an unsigned int.


Definition at line 129 of file ptypes.h.

◆ puint16

typedef unsigned short puint16

Type for unsigned 16 bit.


Definition at line 79 of file ptypes.h.

◆ puint32

typedef unsigned int puint32

Type for unsigned 32 bit.


Definition at line 83 of file ptypes.h.

◆ puint64

typedef unsigned __int64 puint64

Type for unsigned 64 bit.

Definition at line 97 of file ptypes.h.

◆ puint8

typedef unsigned char puint8

Type for unsigned 8 bit.


Definition at line 75 of file ptypes.h.

◆ puintptr

typedef unsigned int puintptr

Type for a platform independent unsigned pointer represented by an integer.

Definition at line 289 of file ptypes.h.

◆ pulong

typedef unsigned long pulong

Type for an unsigned long.


Definition at line 131 of file ptypes.h.

◆ pushort

typedef unsigned short pushort

Type for an unsigned short.


Definition at line 127 of file ptypes.h.