因为实例子类化(instance subclassing)发生在窗口被创建后,子类化窗口的程序不能向该窗口增加任何额外字节(extra bytes)。程序应该将需要存储的数据放在被子类化的窗口的属性列表中(property list)。
基于16个网页-相关网页
window extra bytes 视窗额外位元组
For each messages 4 extra bytes are needed to store the message length information.
对于每个消息,需要4个额外的字节来保存消息的长度信息。
Since it is converting as a vector, it doesn't cost anything to convert a few extra bytes of junk.
由于它是作为一个向量进行转换的,因此再多转换几个无关字节也不会有什么耗费。
For instance, if you pass a 32-bit value to a function expecting a 16-bit value, and the value is in range, the function may never notice the extra bytes.
举例来说,如果您将一个32位的值传递给一个期望16位值的函数,而且所传递的参数值也在正确范围之内,那么这个函数就永远不会注意到多出来的字节。
应用推荐