Index

Package: Decompress

Description

private package UnZip.Decompress is
UnZip.Decompress ----------------- Private, internal to the UnZip package. Created 9 - Mar - 2007 This package includes the decompression algorithms for methods store, reduce, shrink (LZW), implode and inflate. It contains the packages UnZ_IO, UnZ_Glob, UnZ_Infl, UnZ_Olds, UnZ_Misc of previous versions of Zip - Ada. They become local packages inside the Decompress_Data procedure - > previously global variables are now local, one copy per concurrent call.

Types

Trace_type (private)

type Trace_type is (none, some_t, full);

References:

unzip-decompress.ads:45:8 (declaration)
unzip-decompress.ads:47:20 (reference)
Primitive tracing using Ada.Text_IO

Constants & Global variables

trace (private) (Trace_type)

trace : constant Trace_type := none;

no_trace (private) (Boolean)

no_trace   : constant Boolean := trace = none;

References:

unzip-decompress.ads:49:3 (declaration)
unzip-decompress.adb:545:16 (reference)

some_trace (private) (Boolean)

some_trace : constant Boolean := trace >= some_t;

Subprograms & Entries

Decompress_data

procedure Decompress_data 
( zip_file: Zip_Streams.Zipstream_Class;
-- zip_file must be open and its index is meant -- to point to the beginning of compressed data format: PKZip_method;
mode: Write_mode;
output_file_name: String;
-- relevant only if mode = write_to_file output_memory_access: out p_Stream_Element_Array;
-- = write_to_memory feedback: Zip.Feedback_proc;
explode_literal_tree: Boolean;
-- relevant for the "explode" format explode_slide_8KB: Boolean;
-- relevant for the "explode" format end_data_descriptor: Boolean;
encrypted: Boolean;
password: in out Unbounded_String;
get_new_password: Get_password_proc;
-- if null, initial pwd must fit hint: in out Zip.Headers.Data_descriptor -- values are known, or smart fakes and corrected if a closing -- Data_descriptor is appended to the compressed data (1 - pass written -- zip files, like JAR, OpenDocument, etc.) );