uuu
uuu (Universal Update Utility), mfgtools 3.0
 
Loading...
Searching...
No Matches
bmap_t Struct Reference

#include <bmap.h>

Public Types

using bmap_type = std::vector<std::pair<size_t, size_t>>
 

Public Member Functions

 bmap_t ()=default
 
 bmap_t (size_t img_size, size_t blk_size=4096)
 
bmap_tset_image_size (size_t size)
 
bmap_tset_block_size (size_t size=4096)
 
bmap_tset_blocks_count (size_t size=0)
 
bmap_tset_mapped_range (size_t begin, size_t end)
 
size_t image_size () const
 
size_t block_size () const
 
size_t blocks_count () const
 
const bmap_typemapped_ranges () const
 
bool is_mapped_block (size_t index) const
 

Static Public Member Functions

static size_t default_blocks_count (size_t img_size, size_t blk_size)
 

Private Attributes

size_t m_img_size = 0
 
size_t m_blk_size = 4096
 
size_t m_blk_count = 0
 
bmap_type m_blk_map
 
bool m_gap_set = false
 
size_t m_gap_begin = 0
 
size_t m_gap_end = 0
 
size_t m_next_gap_begin = 0
 

Member Typedef Documentation

◆ bmap_type

using bmap_t::bmap_type = std::vector<std::pair<size_t, size_t>>

Constructor & Destructor Documentation

◆ bmap_t() [1/2]

bmap_t::bmap_t ( )
default

◆ bmap_t() [2/2]

bmap_t::bmap_t ( size_t img_size,
size_t blk_size = 4096 )
inline

Member Function Documentation

◆ block_size()

size_t bmap_t::block_size ( ) const
inline

◆ blocks_count()

size_t bmap_t::blocks_count ( ) const
inline

◆ default_blocks_count()

static size_t bmap_t::default_blocks_count ( size_t img_size,
size_t blk_size )
inlinestatic

◆ image_size()

size_t bmap_t::image_size ( ) const
inline

◆ is_mapped_block()

bool bmap_t::is_mapped_block ( size_t index) const

◆ mapped_ranges()

const bmap_type & bmap_t::mapped_ranges ( ) const
inline

◆ set_block_size()

bmap_t & bmap_t::set_block_size ( size_t size = 4096)
inline

◆ set_blocks_count()

bmap_t & bmap_t::set_blocks_count ( size_t size = 0)
inline

◆ set_image_size()

bmap_t & bmap_t::set_image_size ( size_t size)
inline

◆ set_mapped_range()

bmap_t & bmap_t::set_mapped_range ( size_t begin,
size_t end )
inline

Member Data Documentation

◆ m_blk_count

size_t bmap_t::m_blk_count = 0
private

◆ m_blk_map

bmap_type bmap_t::m_blk_map
private

◆ m_blk_size

size_t bmap_t::m_blk_size = 4096
private

◆ m_gap_begin

size_t bmap_t::m_gap_begin = 0
mutableprivate

◆ m_gap_end

size_t bmap_t::m_gap_end = 0
mutableprivate

◆ m_gap_set

bool bmap_t::m_gap_set = false
mutableprivate

◆ m_img_size

size_t bmap_t::m_img_size = 0
private

◆ m_next_gap_begin

size_t bmap_t::m_next_gap_begin = 0
mutableprivate

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