如果有不怀好意的使用者覆写缓冲区,则会变更标志的值,从而指出攻击者是非法存取专用文件。
If a malicious user can overwrite the buffer, then the value of the flag can be changed, thus providing the attacker with illegal access to private files.
可能没有足够的磁盘空间来完成该文件的写操作,或者由于没有足够的内存可用,分配缓冲区可能失败。
There might not be enough disk space to complete the file write operation, or allocating the buffer could fail if not enough memory is available.
为了说明这一情况,让我们研究一个简单示例,该示例演示了从同一个缓冲区读和写一个字符。
Having said that, let's examine a quick example to demonstrate writing and reading a char from the same buffer.
如果缓冲区的大小大于0,那么审计记录是异步写的。
When the size of the buffer is greater than 0, audit records are written asynchronously.
写操作完成之后,它刷新文件缓冲区并解除文件锁。
On completion of the writing, it flushes the file buffers and unlocks the file.
幸运的是,Lucene的类IndexWriter提供了三个参数用来调整缓冲区的大小以及往磁盘上写索引文件的频率。
Fortunately, Lucene's IndexWriter class exposes three parameters to let you adjust the size of the buffer and the frequency of the disk writes.
通过这个例子,我们注意到在调整缓冲区的大小以及写磁盘的频率上面Lucene给我们提供了非常大的灵活性。
Notice that Lucene gives you enough flexibility to control the size of the buffer pool and the frequency of disk writes.
注意,可以使用sync命令将缓冲区缓存中的请求发送到存储媒体(迫使所有未写的数据发送到设备驱动程序,进而发送到存储设备)。
Note that you can use the sync command to flush the buffer cache out to the storage media (force all unwritten data out to the device drivers and, subsequently, to the storage device).
如果将缓冲区大小设置为 0,那么将发生同步写日志操作,而不使用审计缓冲区。
When the size of the buffer is set to 0, synchronous log writing occurs, and the audit buffer is not used.
如果采用异步写日志的方式,那么在发生错误时,可能会丢失多条审计记录,因为这些审计记录在被写到磁盘之前都在缓冲区中。
If an error occurs when using asynchronous log writing, multiple audit records may be lost because they are buffered before being written to disk.
确保在执行写迭代后刷新数据;否则,它将滞留在缓冲区中,直到向流写入下一次迭代。
Make sure you flush the data after you're done writing an iteration; otherwise, it may be stuck in a buffer until the next iteration is written to the stream.
所以缓冲区用于积累更多的人物和写在一个写操作。
So the buffer is used to accumulate more characters and write them all in one write operation.
在衍生类别中覆写时,撷取后援缓冲区中的下一个字元。
When overridden in a derived class, retrieves the next character in the fallback buffer.
在衍生类别中覆写时,预备后援缓冲区来处理指定的输入字元。
When overridden in a derived class, prepares the fallback buffer to handle the specified input character.
如果协议栈收到了一个写寄存器命令,将会执行寄存器更新操作,一个包含新寄存器数值的缓冲区会传给回调函数。
If the protocol stack wants to update a register value because a write register function was received a buffer with the new register values is passed to the callback function.
如果写返回零,OP _ WRITE注册通道,记得缓冲区,并保持选择。
If write returned zero, register the channel for OP_WRITE, remember the buffer somehow, and keep selecting.
写压缩数据的输出缓冲区。
在衍生类别中覆写时,从字元缓冲区手动写入未经处理的标记。
When overridden in a derived class, writes raw markup manually from a character buffer.
在堆叠上宣告的缓冲区因为复制大于缓冲区的资料而遭到覆写时,就会发生静态缓冲区满溢。
A static buffer overrun occurs when a buffer declared on the stack is overwritten by copying data larger than the 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).
让我们考虑硬盘作为输出设备。写入硬盘内存相比非常缓慢。是更快的写一大块的数据一次硬盘然后编写大量的小块。缓冲区用于积累这些块。
The output device might be a hard disk, for instance, and writing to the hard disk involved moving the write head around and waiting for the platter to spin to the right place.
是更快的写一大块的数据一次硬盘然后编写大量的小块。 缓冲区用于积累这些块。
The efficient way to write to a device is to write a bigger chunk of data at a time.
建立或覆写具有指定缓冲区大小、档案选项和档案安全性的指定档案。
Creates or overwrites the specified file with the specified buffer size, file options, and file security.
在衍生类别中覆写时,写入讯息至指定的资料流或缓冲区中。
When overridden in a derived class, writes a message to a specified stream or buffer.
在衍生类别中覆写时,写入讯息至指定的资料流或缓冲区中。
When overridden in a derived class, writes a message to a specified stream or buffer.
应用推荐