staticlib_unzip  1.0.6
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
staticlib::unzip::file_entry Struct Reference

Represents ZIP file entry. More...

#include <staticlib/unzip/file_index.hpp>

Public Member Functions

 file_entry ()
 Constructor, constructs an empty entry.
 file_entry (int32_t offset, int32_t comp_length, int32_t uncomp_length, uint16_t comp_method)
 Constructor.
bool is_empty ()
 Returns true if this instance represents an empty (invalid) entry.

Public Attributes

int32_t offset = -1
 Entry data offset from the start of the file.
int32_t comp_length = -1
 Compressed length.
int32_t uncomp_length = -1
 Uncompressed length.
uint16_t comp_method = 0
 Compression method.

Detailed Description

Represents ZIP file entry.

Constructor & Destructor Documentation

staticlib::unzip::file_entry::file_entry ( )
inline

Constructor, constructs an empty entry.

staticlib::unzip::file_entry::file_entry ( int32_t  offset,
int32_t  comp_length,
int32_t  uncomp_length,
uint16_t  comp_method 
)
inline

Constructor.

Parameters
offsetentry data offset from the start of the file
comp_lengthcompressed length
uncomp_lengthuncompressed length
comp_methodcompression method

Member Function Documentation

bool staticlib::unzip::file_entry::is_empty ( )
inline

Returns true if this instance represents an empty (invalid) entry.

Returns
true if this instance represents an empty (invalid) entry, false otherwise

Member Data Documentation

int32_t staticlib::unzip::file_entry::comp_length = -1

Compressed length.

uint16_t staticlib::unzip::file_entry::comp_method = 0

Compression method.

int32_t staticlib::unzip::file_entry::offset = -1

Entry data offset from the start of the file.

int32_t staticlib::unzip::file_entry::uncomp_length = -1

Uncompressed length.


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