Rizin
unix-like reverse engineering framework and cli tools
|
#include <mspack.h>
Public Attributes | |
struct mscabd_cabinet * | next |
const char * | filename |
off_t | base_offset |
unsigned int | length |
struct mscabd_cabinet * | prevcab |
struct mscabd_cabinet * | nextcab |
char * | prevname |
char * | nextname |
char * | previnfo |
char * | nextinfo |
struct mscabd_file * | files |
struct mscabd_folder * | folders |
unsigned short | set_id |
unsigned short | set_index |
unsigned short | header_resv |
int | flags |
A structure which represents a single cabinet file.
All fields are READ ONLY.
If this cabinet is part of a merged cabinet set, the files and folders fields are common to all cabinets in the set, and will be identical.
off_t mscabd_cabinet::base_offset |
The file offset of cabinet within the physical file it resides in.
Definition at line 715 of file mspack.h.
Referenced by cabd_read_headers(), cabd_search(), and cabinfo().
const char * mscabd_cabinet::filename |
The filename of the cabinet. More correctly, the filename of the physical file that the cabinet resides in. This is given by the library user and may be in any format.
Definition at line 712 of file mspack.h.
Referenced by cabd_extract(), cabd_find(), cabd_open(), cabinfo(), and process_cabinet().
struct mscabd_file * mscabd_cabinet::files |
A list of all files in the cabinet or cabinet set.
Definition at line 743 of file mspack.h.
Referenced by cabd_close(), cabd_merge(), cabd_read_headers(), cabinfo(), main(), process_cabinet(), and rz_bin_pdb_extract_in_folder().
int mscabd_cabinet::flags |
Header flags.
Definition at line 784 of file mspack.h.
Referenced by cmd_descs_generate.Arg::__str__(), cabd_read_headers(), cabinfo(), and load_spanning_cabinets().
struct mscabd_folder * mscabd_cabinet::folders |
A list of all folders in the cabinet or cabinet set.
Definition at line 746 of file mspack.h.
Referenced by cabd_close(), cabd_merge(), and cabd_read_headers().
unsigned short mscabd_cabinet::header_resv |
The number of bytes reserved in the header area of the cabinet.
If this is non-zero and flags has MSCAB_HDR_RESV set, this data can be read by the calling application. It is of the given length, located at offset (base_offset + MSCAB_HDR_RESV_OFFSET) in the cabinet file.
Definition at line 771 of file mspack.h.
Referenced by cabd_read_headers().
The length of the cabinet file in bytes.
Definition at line 718 of file mspack.h.
Referenced by cabd_read_headers(), and cabinfo().
struct mscabd_cabinet * mscabd_cabinet::next |
The next cabinet in a chained list, if this cabinet was opened with mscab_decompressor::search(). May be NULL to mark the end of the list.
Definition at line 705 of file mspack.h.
Referenced by cabd_close(), cabd_read_headers(), cabinfo(), and process_cabinet().
struct mscabd_cabinet * mscabd_cabinet::nextcab |
The next cabinet in a cabinet set, or NULL.
Definition at line 724 of file mspack.h.
Referenced by cabd_append(), cabd_close(), cabd_merge(), cabd_read_headers(), cabinfo(), load_spanning_cabinets(), and process_cabinet().
char * mscabd_cabinet::nextinfo |
The name of the disk containing the next cabinet in a cabinet set, or NULL.
Definition at line 740 of file mspack.h.
Referenced by cabd_close(), cabd_read_headers(), cabinfo(), and load_spanning_cabinets().
char * mscabd_cabinet::nextname |
The filename of the next cabinet in a cabinet set, or NULL.
Definition at line 730 of file mspack.h.
Referenced by cabd_close(), cabd_read_headers(), cabinfo(), and load_spanning_cabinets().
struct mscabd_cabinet * mscabd_cabinet::prevcab |
The previous cabinet in a cabinet set, or NULL.
Definition at line 721 of file mspack.h.
Referenced by cabd_close(), cabd_merge(), cabd_prepend(), cabd_read_headers(), cabinfo(), load_spanning_cabinets(), and process_cabinet().
char * mscabd_cabinet::previnfo |
The name of the disk containing the previous cabinet in a cabinet set, or NULL.
Definition at line 735 of file mspack.h.
Referenced by cabd_close(), cabd_read_headers(), and load_spanning_cabinets().
char * mscabd_cabinet::prevname |
The filename of the previous cabinet in a cabinet set, or NULL.
Definition at line 727 of file mspack.h.
Referenced by cabd_close(), cabd_read_headers(), and load_spanning_cabinets().
unsigned short mscabd_cabinet::set_id |
The set ID of the cabinet. All cabinets in the same set should have the same set ID.
Definition at line 752 of file mspack.h.
Referenced by cabd_merge(), and cabd_read_headers().
unsigned short mscabd_cabinet::set_index |
The index number of the cabinet within the set. Numbering should start from 0 for the first cabinet in the set, and increment by 1 for each following cabinet.
Definition at line 759 of file mspack.h.
Referenced by cabd_merge(), and cabd_read_headers().