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

#include <sparse.h>

Public Member Functions

int init_header (size_t blsz, int blcount)
 
bool is_append_old_chuck (int type, void *p)
 
bool is_same_value (void *data, size_t sz)
 
int push (void *p, size_t sz)
 
int push_one_block (void *data, bool skip=false)
 
size_t push_one_chuck (chunk_header_t *p, void *data)
 
size_t push_raw_data (void *data, size_t sz)
 

Static Public Member Functions

static chunk_header_tget_next_chunk (uint8_t *p, size_t &pos)
 
static bool is_validate_sparse_file (void *p, size_t sz)
 

Public Attributes

std::vector< uint8_t > m_data
 

Private Attributes

size_t m_cur_chunk_header_pos
 
size_t m_max_size
 
uint32_t * m_pcrc
 

Member Function Documentation

◆ get_next_chunk()

static chunk_header_t * SparseFile::get_next_chunk ( uint8_t * p,
size_t & pos )
static

◆ init_header()

int SparseFile::init_header ( size_t blsz,
int blcount )

◆ is_append_old_chuck()

bool SparseFile::is_append_old_chuck ( int type,
void * p )

◆ is_same_value()

bool SparseFile::is_same_value ( void * data,
size_t sz )

◆ is_validate_sparse_file()

bool SparseFile::is_validate_sparse_file ( void * p,
size_t sz )
static

◆ push()

int SparseFile::push ( void * p,
size_t sz )

◆ push_one_block()

int SparseFile::push_one_block ( void * data,
bool skip = false )

◆ push_one_chuck()

size_t SparseFile::push_one_chuck ( chunk_header_t * p,
void * data )

◆ push_raw_data()

size_t SparseFile::push_raw_data ( void * data,
size_t sz )

Member Data Documentation

◆ m_cur_chunk_header_pos

size_t SparseFile::m_cur_chunk_header_pos
private

◆ m_data

std::vector<uint8_t> SparseFile::m_data

◆ m_max_size

size_t SparseFile::m_max_size
private

◆ m_pcrc

uint32_t* SparseFile::m_pcrc
private

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