What should I pay attention to when writing a word?

Source: Internet
Author: User

In the past, a pppoe protocol was built on a single tablet. The number of messages sent was always one more word, which caused the loss of the seller. When a packet is captured, the font still changes... Later, I thought that the tablet was a 16-bit device, and the words of the volume-based phone were reserved, A one-character hole exists in the structure. When the packet is sent, the empty hole is also sent out, and then changed to a one-character box to solve the problem.

This is a meaningful experience. We can see in our latest RFC that most of our suggestions are directed to each other by 4 characters. This is not a problem in 32-bit systems. We don't seem to have to care about this issue. However, we may not be able to press the 4-character phrase for each other. Now the 64-bit hardware Street is full, in the past, many of my anti-bot multi-media files were found to have 16-character comparison. Therefore, when dealing with the network data, it is best to explain one or more images. The default configuration may change without any experience. You still cannot figure out the problem.

For example, in VC, you only need to add the statement that shows 1-character pairs of zookeeper commands before and after the component description, the other parts are still matched in the original method, for example, there is a structure A, in the header file test. h,

 

Test. h

---------------------

...

# Pragma pack (1) // sort the cursor by one word

Struct

{

Char M1;

Int m2;

Char m3;

}

# Pragma pack () // Restore original Pair Mode

...

 

In test. C, when a type A change is declared, it will automatically create the change in a way that corresponds to each other.

Test. c

-----------------

Struct stxx; // The structure consists of six characters, where the # pragma pack command does not need to be used.

 

Check the inner memory under VC.

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.