ROSE 0.11.145.192
Public Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::ModulesJvm::FileStat Struct Reference

Description

This class represents the contents of a central directory file header in a zip file.

The central directory is ... There are also local headers ...

Definition at line 114 of file ModulesJvm.h.

#include <Rose/BinaryAnalysis/Partitioner2/ModulesJvm.h>

Public Member Functions

 FileStat (const uint8_t *buf, size_t &offset, uint32_t fileIndex)
 Constructor.
 
std::string filename () const
 The name of the file.
 
size_t compressedSize () const
 Compressed size of the file (bytes)
 
size_t uncompressedSize () const
 Uncompressed size of the file (bytes)
 
size_t offset () const
 Offset (in bytes) of the local headers.
 
uint32_t centralHeaderSize () const
 Size (in bytes) of the central directory header.
 
FileStatoperator= (const FileStat &)=delete
 

Constructor & Destructor Documentation

◆ FileStat()

Rose::BinaryAnalysis::Partitioner2::ModulesJvm::FileStat::FileStat ( const uint8_t *  buf,
size_t &  offset,
uint32_t  fileIndex 
)
explicit

Constructor.

Parameters
bufThe memory buffer for the zip file.
offsetThe offset in the buffer to the file header (in bytes). The offset is updated to the offset of the next file on exit from the constructor.
fileIndexThe index of the current file header.

Member Function Documentation

◆ offset()

size_t Rose::BinaryAnalysis::Partitioner2::ModulesJvm::FileStat::offset ( ) const

Offset (in bytes) of the local headers.

The local headers contain ...


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