发生缓冲区溢位时,会覆写下一个相邻的记忆体块。
When this happens, the next contiguous chunk of memory is overwritten.
最简单的情况就是考虑直接在缓冲区后面的记忆体中指派一个布尔标志。
In the simplest case, consider a Boolean flag allocated in memory directly after a buffer.
在指派同一资料类型的相邻区块时,这块记忆体栏位称为缓冲区。
When contiguous chunks of the same data types are allocated, the memory region is known as a buffer.
重播记忆体的最大缓冲区大小。
因此,当您从目前资料录向前移动时,提供者就会从本机记忆体缓冲区传回资料值。
Therefore, as you move forward from the current record, the provider returns the data values from the local memory buffer.
这些函式解决两个最棘手的记忆体配置问题:覆写配置之缓冲区的尾端和记忆体遗漏 (无法成功释放不再需要的配置)。
These functions solve two of the most difficult memory allocation problems: overwriting the end of an allocated buffer and memory leaks (failing to free allocations after they are no longer needed).
增加缓冲区大小的代价很高,因为它来自不能交换到磁碟的未分页记忆体,所以尽可能让缓冲区愈小愈好。
Increasing the size of the buffer is expensive, as it comes from non paged memory that cannot be swapped out to disk, so keep the buffer as small as possible.
增加缓冲区大小的代价很高,因为它来自不能交换到磁碟的未分页记忆体,所以尽可能让缓冲区愈小愈好。
Increasing the size of the buffer is expensive, as it comes from non paged memory that cannot be swapped out to disk, so keep the buffer as small as possible.
应用推荐