Utilities<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
工具
Detailed Description
详细描述
This module contains some utility functions which can be used by the application. It includes some special functions for working with bitfields backed by a character array buffer.
This function allows the efficient use of an array to implement bitfields. The array used for storing the bits must always be a multiple of two bytes. Up to eight bits can be set or cleared in one operation.
这个函数可以实现有效处理位域的功能。存储位域的数值必须是两个字节。一次操作最多可处理8位。
Parameters:
ucByteBuf
A buffer where the bit values are stored. Must be a multiple of 2 bytes. No length checking is performed and if usBitOffset / 8 is greater than the size of the buffer memory contents is overwritten.
位存储的缓冲区。必须是2个字节。
usBitOffset
The starting address of the bits to set. The first bit has the offset 0.
位设置的起始地址,第一个位的偏移为0。
ucNBits
Number of bits to modify. The value must always be smaller than 8.
需要修改的位的数量。该值必须小于8。
ucValues
Thew new values for the bits. The value for the first bit starting at usBitOffset is the LSB of the value ucValues
文章评论(0条评论)
登录后参与讨论