1 Star 0 Fork 19

张文迪 / third_party_gptfdisk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mbr.h 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
/* mbr.h -- MBR data structure definitions, types, and functions */
/* This program is copyright (c) 2009-2013 by Roderick W. Smith. It is distributed
under the terms of the GNU GPL version 2, as detailed in the COPYING file. */
#ifndef __MBRSTRUCTS
#define __MBRSTRUCTS
#include <stdint.h>
#include <sys/types.h>
#include "gptpart.h"
//#include "partnotes.h"
#include "diskio.h"
#include "basicmbr.h"
/****************************************
* *
* MBRData class and related structures *
* *
****************************************/
// Full data in tweaked MBR format
class MBRData : public BasicMBRData {
protected:
public:
MBRData(void) {}
MBRData(std::string deviceFilename) : BasicMBRData(deviceFilename) {}
MBRData & operator=(const BasicMBRData & orig);
~MBRData(void);
// Functions to create, delete, or change partitions
// Pass EmptyMBR 1 to clear the boot loader code, 0 to leave it intact
void MakeProtectiveMBR(int clearBoot = 0);
void OptimizeEESize(void);
int DeleteByLocation(uint64_t start64, uint64_t length64);
// Functions to extract data on specific partitions....
GPTPart AsGPT(int i);
}; // struct MBRData
#endif
1
https://gitee.com/wz109/third_party_gptfdisk.git
git@gitee.com:wz109/third_party_gptfdisk.git
wz109
third_party_gptfdisk
third_party_gptfdisk
master

搜索帮助