Index

Package: Zip_Archives

Description

package Archives.Zip_Archives is
Copyright (c) 2012 Kevin Wellwood All rights reserved. This source code is distributed under the Modified BSD License. For terms and conditions, see license.txt.

Classes

Zip_Archive

type Zip_Archive is new Archive with private;

Ancestors:

Primitive operations:

Construct (overriding Archives.Construct)
Construct
Delete (overriding Objects.Delete)
Load_Bitmap (overriding Archives.Load_Bitmap)
Load_Packfile (overriding Archives.Load_Packfile)
Objects.Construct (Inherited)
Objects.To_String (Inherited)

Subprograms & Entries

Exists

function Exists
( this: access Zip_Archive;
filename: String ) return Boolean;
Returns true if 'filename' exists in the Archive.

Load_Bitmap

function Load_Bitmap
( this: access Zip_Archive;
filename: String ) return A_Bitmap;
Reads 'filename' from the Archive and opens it as an Allegro bitmap. The caller takes ownership of the returned bitmap; closing the archive does not affect it. An exception is raised on error.

Load_Packfile

function Load_Packfile
( this: access Zip_Archive;
filename: String ) return A_Packfile;
Reads 'filename' from the Archive and opens it as an in-memory packfile. The caller takes ownership of the returned packfile; closing the archive does not affect it. An exception is raised on error.

Load_Raw

function Load_Raw
( this: access Zip_Archive;
filename: String ) return access Stream_Element_Array;
Reads 'filename' from the Archive and returns it as a raw in-memory buffer. The caller takes ownership of the returned buffer; closing the Archive does not affect it. An exception is raised on error.