-
2
说明: 编写带缓存的文件操作类
从执行体程序库中的CLLogger类可知,通过缓存要写入文件中的数据,能够提高读写磁盘的性能
请编写一个文件操作的封装类,其要求如下:
需要提供open/read/write/lseek/close等函数的封装函数
该类要提供数据缓存服务。
调用该类的写操作接口时,数据要首先写到缓存,然后再根据策略写到文件中。
调用该类的读操作接口时,该类能根据策略缓存读出的数据
读写缓存要保持一致性
(From the implementation of the CLLogger class library, we can know, through the cache to write data in the file, you can improve the performance of the read and write disk
Please write a package for the operation of the class, and its requirements are as follows:
The encapsulation function of open/read/write/lseek/close and other functions is required.
The class to provide data cache services.
When the write operation interface of the class is called, the data must first be written to the cache, and then the policy is written to the file.
When a read operation interface of the class is called, the class can read the data according to the policy cache.
Read/write cache to maintain consistency)
- 2016-11-05 21:27:34下载
- 积分:1
-
zhongjile
通过51单片机设计一个电子时钟,精确到秒,可以通过按键调节时间(By 51 microcontroller design an electronic clock, accurate to seconds, you can adjust the time by pressing a button)
- 2013-11-14 09:56:13下载
- 积分:1
-
D_Motor
AT89C51控制步进电机,实现正反转加减速,驱动芯片是ULN2803.(AT89C51 control the stepper motor to achieve reversing acceleration and deceleration, the driver chip is the ULN2803.)
- 2011-05-30 21:09:36下载
- 积分:1
-
NRF2401-2.4G
NRF2401-2.4G的无线通讯程序,51单片机完成(NRF2401-2.4G wireless communication procedures 51 MCU to complete)
- 2012-07-17 11:46:41下载
- 积分:1
-
W5500PYeelinkPdht11Pgy-30
1.具有环境信息采集功能,可以采集环境的温度、湿度和光照强度。
2.具有联网功能,可以将采集到的环境信息直接上传到Yeelink云平台上。
3.具有网络查看功能,可以用任何联网设备,在互联网上查看采集点的信息。(1 with environmental information collection function, you can collect temperature, humidity and light intensity environment. 2 with networking capabilities, you can collect environmental information directly uploaded to Yeelink cloud platform. 3 has a network view feature, you can use any networked device, view the information collection point on the Internet.)
- 2013-12-31 20:00:40下载
- 积分:1
-
Quectel_MC20_Hardware
三合一模块,Mc20的硬件设计手册,已经通过做项目(Triad module, Mc20 hardware design manual, already by doing projects
)
- 2017-01-20 11:30:19下载
- 积分:1
-
PCA9685_MG996R
STM32F103C8T6控制PCA9685舵机驱动板(STM32F103C8T6 control PCA9685 steering wheel drive board)
- 2018-10-19 20:00:22下载
- 积分:1
-
bluetooh-serial-port-
说明: 基于stm32f103开发的单片机,方便大家下载使用(Based on STM32 development of Bluetooth transmission system, upload convenient for everyone to use.)
- 2020-09-08 11:59:28下载
- 积分:1
-
12864
说明: lcd12864驱动文件,建议收藏!(LCD12864 driver file, recommended collection!)
- 2019-03-11 14:11:52下载
- 积分:1
-
KEY
状态机按键检测,实现单击双击多击功能,单片机用的是STM8L(Key detection state machine to achieve multi-click-click, double-click function)
- 2016-04-09 13:27:11下载
- 积分:1