Note the tdes8-> Expand method.

Source: Internet
Author: User

Writing todayProgramThe Dynamic Buffer cbufflat is used. After reading data, tdes8's expand () method is used to change tdes8 to tdes16. Of course, the program reports an error and the simulator exits directly, obviously, the program has a serious error. After practice, it is found that expand does not implement 8-bit to 16-bit conversion by extending the memory area, but uses the existing Descriptor Memory area size, but only merges the memory, two 8 into a 16, if the information in the 8-bit descriptor exceeds the maximum length of half, the conversion fails. The expand method may fail to be converted because the memory address is not an even number.

Record at once to prevent further errors. Please give us some advice.

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.