Rizin
unix-like reverse engineering framework and cli tools
test-lz4-list.NVerboseFileInfo Class Reference
Inheritance diagram for test-lz4-list.NVerboseFileInfo:

Public Member Functions

def __init__ (self, line_in)
 

Public Attributes

 line
 
 filename
 
 exp_unc_size
 
 exp_comp_size
 

Detailed Description

Definition at line 17 of file test-lz4-list.py.

Constructor & Destructor Documentation

◆ __init__()

def test-lz4-list.NVerboseFileInfo.__init__ (   self,
  line_in 
)

Definition at line 18 of file test-lz4-list.py.

18  def __init__(self, line_in):
19  self.line = line_in
20  splitlines = line_in.split()
21  if len(splitlines) != 7:
22  errout("Unexpected line: {}".format(line_in))
23  self.frames, self.type, self.block, self.compressed, self.uncompressed, self.ratio, self.filename = splitlines
24  self.exp_unc_size = 0
25  # Get real file sizes
26  if "concat-all" in self.filename or "2f--content-size" in self.filename:
27  for i in SIZES:
28  self.exp_unc_size += os.path.getsize("{}/test_list_{}M".format(TEMP, i))
29  else:
30  uncompressed_filename = self.filename.split("-")[0]
31  self.exp_unc_size += os.path.getsize("{}/{}".format(TEMP, uncompressed_filename))
32  self.exp_comp_size = os.path.getsize("{}/{}".format(TEMP, self.filename))
33 
34 
size_t len
Definition: 6502dis.c:15
def errout(text, err=1)

Member Data Documentation

◆ exp_comp_size

test-lz4-list.NVerboseFileInfo.exp_comp_size

Definition at line 32 of file test-lz4-list.py.

◆ exp_unc_size

test-lz4-list.NVerboseFileInfo.exp_unc_size

Definition at line 24 of file test-lz4-list.py.

◆ filename

test-lz4-list.NVerboseFileInfo.filename

Definition at line 23 of file test-lz4-list.py.

◆ line

test-lz4-list.NVerboseFileInfo.line

Definition at line 19 of file test-lz4-list.py.


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