-
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
-
z2tong-xun
dual-machine communications
- 2014-03-21 21:07:41下载
- 积分:1
-
AU-tft-lcd-source
AU 3.5" TFT-LCD 源代码,使用PMP开发中使用(AU 3.5 "TFT-LCD source code, the use of the development of the use of PMP)
- 2007-03-30 11:50:21下载
- 积分:1
-
stsw-stm32028
ADC source codes for stm32F2
- 2013-09-12 14:51:52下载
- 积分:1
-
[TEST52]CCP2-IRD-BEEP
红外遥控器控制蜂鸣器,pic16f877a,C语言编程(Infrared remote control buzzer, PIC16F877A, C language programming)
- 2014-08-15 09:02:22下载
- 积分:1
-
51单片机 ESP8266 实现无线通信模块的传输
ESP8266,实现无线通信模块的传输,通过51单片机(ESP8266, realizing the transmission of wireless communication module)
- 2020-06-20 05:40:01下载
- 积分:1
-
AD7192test
ADI官方的AD7192驱动程序,已调试成功(ADI official AD7192 driver, the successful commissioning)
- 2012-05-16 14:49:53下载
- 积分:1
-
RS485通讯_DMA收发数据
基于STM32F407 MCU,对RS485进行通讯测试,DMA收发数据,经测试数据稳定,功能正常(Based on STM32F407 MCU, RS485 was tested for communication,DMA data receiving and receiving, the tested data was stable and the function was normal)
- 2020-12-28 21:09:01下载
- 积分:1
-
78712545
一个可以控制电机的程序 能主管的显示数据(One can control the electric charge of the program can display data)
- 2009-07-13 00:56:16下载
- 积分:1
-
LS
little projects in lab view so i can just have access to downloads
- 2014-01-19 19:45:40下载
- 积分:1