With code generation, you can also build validation into the constructed classes, either automatically checking values when they are set or checking validity on demand.
用代码生成,您还可以将验证构建进所构造的类中,从而要么自动检查值(当设置好它们时),要么按照需要检查有效性。
If a new primary use is anticipated for a component, consider whether this creates a new trust boundary and a need for additional validity checking outside the component.
如果希望组件提供新的主要用途,请考虑这是否会创建新的信任边界和带来在组件外进行额外有效性检查的需求。
Now, without checking the validity of what you're doing, you copy 256 bytes into a stack area reserved at only 128 bytes.
现在,您没有检查正在处理的内容的有效性,而是将256个字节复制到了仅为128个字节的保留堆栈空间内。
应用推荐