uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
FBFlashCmd Class Reference

#include <fastboot.h>

Inheritance diagram for FBFlashCmd:
FBCmd CmdBase

Public Member Functions

 FBFlashCmd (char *p)
 
int parser (char *p=nullptr) override
 
int run (CmdCtx *ctx) override
 
int flash (FastBoot *fb, void *p, size_t sz)
 
int flash_raw2sparse (FastBoot *fb, std::shared_ptr< FileBuffer > p, size_t max)
 
bool isffu (std::shared_ptr< FileBuffer > p)
 
int flash_ffu (FastBoot *fb, std::shared_ptr< FileBuffer > p)
 
int flash_ffu_oneblk (FastBoot *fb, std::shared_ptr< FileBuffer > p, size_t off, size_t blksz, size_t blkindex)
 
- Public Member Functions inherited from FBCmd
 FBCmd (char *p, std::string &&fb_cmd, char separator=':')
 
- Public Member Functions inherited from CmdBase
 CmdBase ()=default
 
 CmdBase (char *p)
 
virtual ~CmdBase ()
 
virtual int dump ()
 
const std::string & get_cmd () const noexcept
 
bool get_lastcmd () const noexcept
 
void insert_param_info (const char *key, void *pD, Param::Type tp, bool ignore_case=true, const char *err=nullptr)
 
virtual int parser_protocol (char *p, size_t &pos)
 

Private Attributes

bmap_t m_bmap
 
std::string m_filename
 
std::string m_bmap_filename
 
std::string m_partition
 
bool m_raw2sparse = false
 
bool m_use_bmap = false
 
size_t m_sparse_limit = 0x1000000
 
uint64_t m_totalsize
 
bool m_scanterm = false
 
uint64_t m_scan_limited = UINT64_MAX
 

Additional Inherited Members

- Protected Attributes inherited from FBCmd
std::string m_uboot_cmd
 
- Protected Attributes inherited from CmdBase
bool m_bCheckTotalParam = false
 
std::string m_cmd
 
bool m_lastcmd = false
 
bool m_NoKeyParam = false
 
int m_timeout = 10000
 

Constructor & Destructor Documentation

◆ FBFlashCmd()

FBFlashCmd::FBFlashCmd ( char * p)
inline

Member Function Documentation

◆ flash()

int FBFlashCmd::flash ( FastBoot * fb,
void * p,
size_t sz )

◆ flash_ffu()

int FBFlashCmd::flash_ffu ( FastBoot * fb,
std::shared_ptr< FileBuffer > p )

◆ flash_ffu_oneblk()

int FBFlashCmd::flash_ffu_oneblk ( FastBoot * fb,
std::shared_ptr< FileBuffer > p,
size_t off,
size_t blksz,
size_t blkindex )

◆ flash_raw2sparse()

int FBFlashCmd::flash_raw2sparse ( FastBoot * fb,
std::shared_ptr< FileBuffer > p,
size_t max )

◆ isffu()

bool FBFlashCmd::isffu ( std::shared_ptr< FileBuffer > p)

◆ parser()

int FBFlashCmd::parser ( char * p = nullptr)
overridevirtual

Reimplemented from FBCmd.

◆ run()

int FBFlashCmd::run ( CmdCtx * ctx)
overridevirtual

Reimplemented from FBCmd.

Member Data Documentation

◆ m_bmap

bmap_t FBFlashCmd::m_bmap
private

◆ m_bmap_filename

std::string FBFlashCmd::m_bmap_filename
private

◆ m_filename

std::string FBFlashCmd::m_filename
private

◆ m_partition

std::string FBFlashCmd::m_partition
private

◆ m_raw2sparse

bool FBFlashCmd::m_raw2sparse = false
private

◆ m_scan_limited

uint64_t FBFlashCmd::m_scan_limited = UINT64_MAX
private

◆ m_scanterm

bool FBFlashCmd::m_scanterm = false
private

◆ m_sparse_limit

size_t FBFlashCmd::m_sparse_limit = 0x1000000
private

◆ m_totalsize

uint64_t FBFlashCmd::m_totalsize
private

◆ m_use_bmap

bool FBFlashCmd::m_use_bmap = false
private

The documentation for this class was generated from the following files: