Delphi Data Types
http://docwiki.embarcadero.com/RADStudio/XE6/en/Delphi_Data_Types
Integer Data Types
Type | Description | Pointer |
---|---|---|
Byte | 8-bit unsigned integer | PByte |
ShortInt | 8-bit signed integer | PShortInt |
Word | 16-bit unsigned integer | PWord |
SmallInt | 16-bit signed integer | PSmallInt |
Cardinal | 32-bit unsigned integer | PCardinal |
LongWord | 32-bit unsigned integer | PLongWord |
DWord | 32-bit unsigned integer | PLongWord |
Integer | 32-bit signed integer | PInteger |
LongInt | 32-bit signed integer | PLongint |
UInt64 | 64-bit unsigned integer | PUInt64 |
Int64 | 64-bit signed integer | PInt64 |
NativeUInt | 64-bit or 32-bit platform-dependent unsigned integer | PNativeUInt |
NativeInt | 64-bit or 32-bit platform-dependent signed integer | PNativeInt |
Floating-point Data Types
Type | Description | Pointer | Record |
---|---|---|---|
Single | Single precision floating-point value (4 bytes) | PSingle | TSingleRec |
Double | Double precision floating-point value (8 bytes) | PDouble | TDoubleRec |
Extended | Extended precision floating-point value (10 bytes on Win32, but 8 bytes on Win64) See page about multi-device applications. |
PExtended | TExtended80Rec |
Real | Alias of Double | N/A | N/A |
String and Character Data Types
Type | Description | Pointer |
---|---|---|
AnsiChar | ANSI character | PAnsiChar |
Char | Wide character (16-bit) | PChar |
WideChar | 16-bit character | PWideChar |
AnsiString | Represents a dynamically allocated ANSI string whose maximum length is limited only by available memory. | PAnsiString |
RawByteString | Use as a "codepage-agnostic" parameter to a method or function, or as a variable type to store BLOB data. | PRawByteString |
UnicodeString | Unicode string | PUnicodeString |
String | Alias for UnicodeString | PString |
ShortString | A string of maximum 255 characters | PShortString |
WideString | A string of 16-bit characters | PWideString |
File Data Types
Boolean Data Types
Type | Description | Pointer |
---|---|---|
Boolean | Represents a logical value (true or false). | PBoolean |
ByteBool | Represents an 8-bit logical value. | |
WordBool | Represents a 16-bit logical value. | PWordBool |
LongBool | Represents a 32-bit logical value. | PLongBool |
Other Data Types
Type | Description | Pointer |
---|---|---|
Array | Represents an indexed collection of elements of the same type. | |
Record | Represents a heterogeneous set of elements. | |
Variant | Represents values that can change type at run time. | PVariant |
Pointer | Represents a pointer to data of any type. | PPointer |
Currency | A fixed-point data type used to hold monetary values. | PCurrency |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
2013-09-16 ida plug-in helloworld
2013-09-16 ARM 调用约定 calling convention