Go cross-platform number scrambling type

Source: Internet
Author: User

Packaging for basic data types:

1. Cross-platform for porting

2. Types of packaging for different frame types (MFC, win32sdk,c)

3. The assembled structure of the basic data type

4. Macro definition

Number Type

Go also has schema-based types, such as: int, uint, and uintptr.

Serial Number Type and Description
1 Uint8
Unsigned 8-bit integer (0 to 255)
2 UInt16
Unsigned 16-bit integer (0 to 65535)
3 UInt32
Unsigned 32-bit integer (0 to 4294967295)
4 UInt64
Unsigned 64-bit integer (0 to 18446744073709551615)
5 int8
Signed 8-bit integer (-128 to 127)
6 Int16
Signed 16-bit integer (-32768 to 32767)
7 Int32
Signed 32-bit integer (-2147483648 to 2147483647)
8 Int64
Signed 64-bit integer (-9223372036854775808 to 9223372036854775807)

Floating point type:

Serial Number Type and Description
1 Float32
IEEE-754 32-bit floating-point number
2 Float64
IEEE-754 64-bit floating-point number
3 Complex64
32-bit real and imaginary numbers
4 complex128
64-bit real and imaginary numbers

Go cross-platform number scrambling type

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.