CByteArray中可以用SetSize设置最大是多少的数组大小??
如题:比如我这样设置行吗:
SetSize(204800)
如果不行,我怎样才能设置204800这样大的数组呢?
[解决办法]
CByteArray没有明确规定最大上限
取决于当前可用内存
以及当前int的最大值(32位或64位)
[解决办法]
可以。直接用吧。
[解决办法]
它的size的类型是64的int吧
这个值不算大
[解决办法]
- C/C++ code
If the new size is smaller than the old size, then the array is truncated and all unused memory is released. For efficiency, call SetSize to set the size of the array before using it. This prevents the need to reallocate and copy the array each time an item is added.
[解决办法]
应该是64啊
[解决办法]
可以 内存够的话。