Symbian OS Class Naming Connection - Basic Type

xiaoxiao2021-03-06  34

1.1 Basic type

In this chapter we discuss the main features of each type. But before the start, let us go back to talk from the basic type. The Symbian OS provides a built-in typedefs that are independent of the compiler; these typedefs should be used instead of private types.

· Tintx and Tuintx (x = 8, 16 or 32) are 8-bit / 16-bit / 32-bit signed and unsigned integer. Unless there is sufficient reason, Tint or TUINT type should be used for memory optimization and compatibility, which correspond to a 32-bit integer with symbols and unsigned.

· Tint64. The version before SYMBIAN OS V8.0 does not provide support for the ARM processor to 64-bit operations, so the Tint64 type class is to implement 64-bit integers with two 32-bit values. In Symbian OS V8.0, Tint64 and Tuint64 are defined by Typedef to long long type and use local 64-bit support.

· TREAL32 and TREAL64 (TREAL64 equivalent TREAL) are single-precision and double precision floating point, equivalent to float and double type [1]. With respect to the above-described integer, it will be slower for these two floating point types, so they should avoid using them in unnecessary occasions.

• TTEXTX (x = 8 or 16) is a narrow character type and a wide character type, respectively, corresponding to 8-bit and 16-bit unsigned integers.

(to be continued)

转载请注明原文地址:https://www.9cbs.com/read-63964.html

New Post(0)