发明名称 METHOD, APPARATUS, AND SYSTEM FOR READING AND WRITING DATA
摘要 Embodiments of the present invention provide a method, an apparatus, and a system for reading and writing data, which relate to the computer field, can resolve a problem in the prior art that different algorithms need to be configured for write operations on storage devices of different optimization granularities. The method includes: acquiring first data to be written into a storage device and an address for the first data; acquiring, second data from the address of the storage device; acquiring configuration information; generating, according to the configuration information, a candidate data set; comparing data in the candidate data set with the second data, so as to acquire third data that is in the candidate data set and meets a preset rule; and writing the third data into the storage device according to the address.
申请公布号 US2016054919(A1) 申请公布日期 2016.02.25
申请号 US201514933785 申请日期 2015.11.05
申请人 Huawei Technologies Co., Ltd. 发明人 Tao Yidong;Chen Shaojie;Dai Yiping
分类号 G06F3/06;G11C13/00 主分类号 G06F3/06
代理机构 代理人
主权项 1. A method for reading and writing data, the method comprising: acquiring first data to be written into a storage device and an address for the first data; acquiring, according to the address, second data that has been written into the storage device; acquiring configuration information, wherein the configuration information comprises a data bit width, a bit quantity of a data flag, and a preset stepping algorithm, and the data bit width indicates a bit width of the first data; generating, according to the bit quantity of the data flag and the bit width of the first data and by using the preset stepping algorithm, a candidate data set corresponding to the first data, wherein each piece of data in the candidate data set is uniquely corresponding to a value of one data flag; comparing data in the candidate data set with the second data, so as to acquire third data that is in the candidate data set and meets a preset rule; and writing the third data into the storage device according to the address, so as to calculate and read the first data according to the third data and a value of a data flag corresponding to the third data, when the first data needs to be read from the storage device.
地址 Shenzhen CN