ROSE 2.1.0
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
Rose::BinaryAnalysis::Partitioner2::ModulesJvm::Zipper Struct Reference

Description

Definition at line 173 of file ModulesJvm.h.

Public Member Functions

 Zipper (SgAsmGenericFile *gf)
 
std::string filename () const
 The file name of the container.
 
const std::vector< FileStat > & files () const
 Listing of file names in the container.
 
bool present (const std::string &name) const
 
size_t fileSize (const std::string &name) const
 Return uncompressed file size for file with the given name.
 
size_t offset (const char *file) const
 
unsigned char * decode (const std::string &name, size_t &nbytes)
 Decode the contents of a file in this zipped container.
 
 Zipper (const Zipper &)=delete
 
Zipperoperator= (const Zipper &)=delete
 

Member Function Documentation

◆ decode()

unsigned char * Rose::BinaryAnalysis::Partitioner2::ModulesJvm::Zipper::decode ( const std::string &  name,
size_t &  nbytes 
)

Decode the contents of a file in this zipped container.

This function performs a simple string comparison and does not access the filesystem. The comparison is case-sensitive.

Parameters
nameFile name to decode.
nbytesNumber of bytes decoded.
Returns
pointer to buffer of characters decoded.

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