Copyright © 2001-2018 MultiMedia Soft

ZIP.EntryUncompressedSizeGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the uncompressed size of a specific entry available inside a ZIP file session previously opened through the ZIP.Open method or created through the ZIP.Create method.

 

This method should be invoked before using the ZIP.EntryExtractToMemory method in order to understand the exact size of the buffer needed for storing the entry.

As a second feature, this method allows understanding if an entry with a specific name already exists.

 

For further details about methods for ZIP management refer to the ZIP object.

For details about using ZIP management refer to the How to manage ZIP files tutorial.

 

 

Syntax

 

[Visual Basic]

control.ZIP.EntryExtractToMemory (

strEntryName as String,

nSize as Long

) as enumErrorCodes


 

[C++]

short control.ZIP.EntryUncompressedSizeGet (

LPCTSTR strEntryName,

long *nSize

);


 

 

Parameter

Description

 

 

strEntryName

String representing the name of the entry of interest.

nSize

Reference that, on return from the method call, will contain the size, expressed in bytes, of the uncompressed entry.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful