Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

ht_le_page_file Class Reference

#include <htle.h>

Inheritance diagram for ht_le_page_file:

ht_layer_streamfile ht_streamfile ht_stream List of all members.

Public Member Functions

void init (ht_streamfile *file, bool own_file, ht_le_pagemap *pagemap, dword pagemapsize, dword page_size)
virtual bool isdirty (FILEOFS offset, UINT range)
virtual UINT read (void *buf, UINT size)
virtual int seek (FILEOFS offset)
virtual FILEOFS tell ()
virtual int vcntl (UINT cmd, va_list vargs)
virtual UINT write (const void *buf, UINT size)
bool map_ofs (UINT lofs, FILEOFS *pofs, UINT *maxsize)
bool unmap_ofs (FILEOFS pofs, UINT *lofs)

Protected Attributes

ht_le_pagemappagemap
dword pagemapsize
dword page_size
FILEOFS ofs

Member Function Documentation

void ht_le_page_file::init ht_streamfile file,
bool  own_file,
ht_le_pagemap pagemap,
dword  pagemapsize,
dword  page_size
 

Definition at line 424 of file htle.cc.

References file, ht_stream::init(), ofs, page_size, pagemap, and pagemapsize.

Referenced by ht_le::init().

bool ht_le_page_file::isdirty FILEOFS  offset,
UINT  range
[virtual]
 

Definition at line 433 of file htle.cc.

References ht_streamfile::cntl(), dword, FCNTL_MODS_IS_DIRTY, FILEOFS, isdirty(), map_ofs(), ofs, and UINT.

Referenced by isdirty().

bool ht_le_page_file::map_ofs UINT  lofs,
FILEOFS pofs,
UINT maxsize
 

Map a paged and linearized LE offset to its corresponding physical file offset

Definition at line 454 of file htle.cc.

References FILEOFS, ht_le_pagemap::offset, page_size, pagemap, pagemapsize, UINT, and ht_le_pagemap::vsize.

Referenced by LEAnalyser::addressToRealFileofs(), ht_le_aviewer::get_current_real_offset(), isdirty(), read(), vcntl(), and write().

UINT ht_le_page_file::read void *  buf,
UINT  size
[virtual]
 

Reimplemented from ht_layer_streamfile.

Definition at line 478 of file htle.cc.

References buf, byte, FILEOFS, map_ofs(), ofs, ht_stream::read(), ht_streamfile::seek(), size, and UINT.

int ht_le_page_file::seek FILEOFS  offset  )  [virtual]
 

Reimplemented from ht_layer_streamfile.

Definition at line 499 of file htle.cc.

References FILEOFS, and ofs.

FILEOFS ht_le_page_file::tell  )  [virtual]
 

Reimplemented from ht_layer_streamfile.

Definition at line 505 of file htle.cc.

References FILEOFS, and ofs.

bool ht_le_page_file::unmap_ofs FILEOFS  pofs,
UINT lofs
 

Definition at line 467 of file htle.cc.

References FILEOFS, ht_le_pagemap::offset, page_size, pagemap, pagemapsize, UINT, and ht_le_pagemap::vsize.

Referenced by LEAnalyser::realFileofsToAddress().

int ht_le_page_file::vcntl UINT  cmd,
va_list  vargs
[virtual]
 

Reimplemented from ht_layer_streamfile.

Definition at line 510 of file htle.cc.

References ht_streamfile::cntl(), FCNTL_MODS_CLEAR_DIRTY_RANGE, FCNTL_MODS_IS_DIRTY, FILEOFS, map_ofs(), UINT, and ht_layer_streamfile::vcntl().

UINT ht_le_page_file::write const void *  buf,
UINT  size
[virtual]
 

Reimplemented from ht_layer_streamfile.

Definition at line 550 of file htle.cc.

References buf, byte, FILEOFS, map_ofs(), ofs, ht_streamfile::seek(), size, UINT, and ht_stream::write().


Member Data Documentation

FILEOFS ht_le_page_file::ofs [protected]
 

Definition at line 110 of file htle.h.

Referenced by init(), isdirty(), read(), seek(), tell(), and write().

dword ht_le_page_file::page_size [protected]
 

Definition at line 109 of file htle.h.

Referenced by init(), map_ofs(), and unmap_ofs().

ht_le_pagemap* ht_le_page_file::pagemap [protected]
 

Definition at line 107 of file htle.h.

Referenced by init(), map_ofs(), and unmap_ofs().

dword ht_le_page_file::pagemapsize [protected]
 

Definition at line 108 of file htle.h.

Referenced by init(), map_ofs(), and unmap_ofs().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:15:59 2004 by doxygen 1.3.5