A circular buffer first starts empty and of some predefined length.
Assume that a 1 is written into the middle of the buffer (exact starting location does not matter in a circular buffer)
假定1被写入缓冲区中部(对于圆形缓冲区来说,最初的写入位置在哪里是无关紧要的 ) :
To see additional log messages, you can run the logcat command with the -b option, to request viewing of an alternate circular buffer.
如需查看其他日志消息,您可以使用 -b 选项运行 logcat 命令,以请求查看备用循环缓冲区。
The Android logging system keeps multiple circular buffers for log messages, and not all of the log messages are sent to the default circular buffer.
Android 日志系统保留日志消息的多个循环缓冲区,而不是发送到默认循环缓冲区的所有日志消息。
Uses [edit] The useful property of a circular buffer is that it does not need to have its elements shuffled around when one is consumed.
圆形缓冲区的一个有用特性是:当一个数据元素被用掉后,其余数据元素不需要移动其存储位置。
In other words, the circular buffer is well-suited as a FIFO buffer while a standard, non-circular buffer is well suited as a LIFO buffer.
换句话说,圆形缓冲区适合实现先进先出 缓冲区,而非圆形缓冲区适合后进先出 缓冲区。
The journal is a circular buffer of disk blocks that is not read in normal file system XFS journal is limited to a maximum size of both 64 KB blocks and 128 MB,[verification needed] with the minimum size dependent upon a calculation of the file system block size and directory block size.
XFS的日志被保存在磁盘块的循环缓冲区上,不会被正常的文件系统操作影响。 XFS日志大小的上限是64k个块和128MB中的较大值,下限取决于已存在的文件系统和目录的块的大小。
A consequence of the circular buffer is that when it is full and a subsequent write is performed, then it starts overwriting the oldest data.
如果缓冲区是满的,又要写入新的数据,一种策略是覆盖掉最老的数据。
The first step is to add the IPC circular buffer and index section definitions to the top of the CTOM and MTOC MSG RAM's in both M3 and C28 projects' command linker files, as shown on this slide.
第一步是将 IPC 循环缓存区和指数部分定义添加到 M3 和 C28 项目命令链接文件中 CTOM 和 MTOC MSG RAM 的顶层,如本幻灯片所示。