当前位置:网站首页>【OBS】circlebuf
【OBS】circlebuf
2022-07-27 02:41:00 【等风来不如迎风去】
循环缓冲区¶
一个循环缓冲区,当数据被推到前面或后面时,它会根据需要自动增加大小。
#include <util/circlebuf.h>
循环缓冲区结构 (struct circlebuf)
结构circlebuf
无效 * circlebuf.data
尺寸_t circlebuf.size
尺寸_t circlebuf.start_pos
尺寸_t circlebuf.end_pos
尺寸_t circlebuf.capacity
循环缓冲区内联函数
无效circlebuf_init( struct circlebuf *cb )
初始化一个循环缓冲区(只是将整个结构清零)。
参数
cb - 循环缓冲区
无效circlebuf_free( struct circlebuf *cb )
释放循环缓冲区。
参数
cb - 循环缓冲区
void circlebuf_reserve( struct circlebuf *cb , size_t 容量)
保留特定数量的缓冲区空间以确保最小化升迁。
参数
cb - 循环缓冲区
容量– 新容量,以字节为单位
void circlebuf_upsize( struct circlebuf *cb , size_t 大小)
设置当前活动(不仅仅是保留)大小。任何新数据都归零。
参数
cb - 循环缓冲区
size – 新的大小,以
边栏推荐
- C# 使用SqlSugar Updateable系统报错无效数字,如何解决?求指导!
- Chapter 4 决策树和随机森林
- A. Round Down the Price
- Regression testing: meaning, challenges, best practices and tools
- Plato farm is expected to further expand its ecosystem through elephant swap
- Is it safe for tongdaxin to open an account
- 一文读懂 | 数据中台如何支撑企业数字化经营
- Record the problem of PHP program accessing system files incorrectly
- Cocos game practice-05-npc and character attack logic
- Programming implementation of eight queens
猜你喜欢

Feitengtengrui d2000 won the "top ten hard core technologies" award of Digital China

Plato farm has a new way of playing, and the arbitrage eplato has secured super high returns

Interview question: the difference between three instantiated objects in string class

Function pointer and callback function

About the solution of using hyperbeach to appear /bin/sh: 1: packr2: not found

Briefly sort out the dualpivotquicksort

GetObject call timing of factorybean

第五届强网杯全国网络安全挑战赛 题目复现(有题目附件,详解)

阿里云服务器域名加端口网页不能访问问题记录

Bean Validation原理篇--07
随机推荐
Characteristics and determination scheme of Worthington pectinase
第六周复习
Bean Validation原理篇--07
VR全景现在是不是刚需?看完你就明白了
函数指针与回调函数
NFT数字藏品系统开发:小蚁数智帮助品牌一键上链发行NFT
connman介绍
Ming min investment Qiu Huiming: behind the long-term excellence and excess, the test is the team's investment and research ability and the integrity of strategy
阿里云服务器域名加端口网页不能访问问题记录
Director of meta quest content ecology talks about the original intention of APP lab design
科目三: 济南章丘二号线
Leetcode- > dichotomy (III)
Startup process and rescue mode
mysql中case when返回多个字段处理方案
深圳家具展首日,金可儿展位三大看点全解锁!
Will this flinkcdc monitor all tables in the database? Or the designated table? I look at the background log. It monitors all tables. If it monitors
Prime factorization -- C (GCC) -- PTA
【无标题】
ZJCTF_ login
Plato farm is expected to further expand its ecosystem through elephant swap