![]() ![]() Use the enum keyword to specify a number of constants for a variable. Typedefs can also be used with structs (see Structs and Unions). Note that typedefs cannot be used to create multi-dimensional arrays (see Limitations). For example, to generate a new string type with 15 characters use: typedef char myString Note that the array size must be a constant in this case. Typedefs can also be used with arrays (see Arrays, Duplicates, and Optimizing) using the syntax 'typedef '. Would generate a new data type myInt for unsigned integers. The syntax for creating new types is ' typedef '. Other data types can be created using the ' typedef' keyword. 010 Editor also has support for a special string type. Default date and time formats can be set using the Inspector Options dialog. Note that date types can be used in Templates, but they must be cast to an int or float before any operations can be performed on them. Opcode - Allows incorporating the disassembler into a Template and see Disassembly in Templates for more information.String Types - string (see Strings), wchar_t and wstring (see Wide Strings). ![]() Date Types - DOSDATE, DOSTIME, FILETIME, OLETIME, time_t, time64_t (for more information on date types see Using the Inspector).16-Bit Floating Point Number - hfloat, HFLOAT.64-Bit Floating Point Number - double, DOUBLE.32-Bit Floating Point Number - float, FLOAT.64-Bit Unsigned Integer - uint64, uquad, UQUAD, UINT64, QWORD, _uint64.64-Bit Signed Integer - int64, quad, QUAD, INT64, _int64.32-Bit Unsigned Integer - uint, uint32, ulong, UINT, UINT32, ULONG, DWORD.32-Bit Signed Integer - int, int32, long, INT, INT32, LONG.16-Bit Unsigned Integer - ushort, uint16, USHORT, UINT16, WORD.16-Bit Signed Integer - short, int16, SHORT, INT16.8-Bit Unsigned Integer - uchar, ubyte, UCHAR, UBYTE.8-Bit Signed Integer - char, byte, CHAR, BYTE.The following lists each of the data types and all of the names currently supported for that type: Commonly, a number of different names refer to the same data type (for example, ' ushort' and ' WORD' usually refer to a 16-bit unsigned integer). These data types are used when writing a Template (see Declaring Template Variables) or when declaring variables in a Script (see Declaring Script Variables). Support for a number of different data types is built into 010 Editor. Installing Files on Open from the Repository.Using 010 Editor - Templates and Scripts. ![]()
0 Comments
Leave a Reply. |