ZIP.EntryUncompressedSizeGet method |
|
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 ZipMan class.
For details about using ZIP management refer to the How to manage ZIP files tutorial.
Syntax
[Visual Basic] Public Function EntryExtractToMemory ( strEntryName as String, ByRef nSize as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes EntryUncompressedSizeGet ( string strEntryName, ref Int32 nSize ); |
[C++] public: enumErrorCodes EntryUncompressedSizeGet ( string strEntryName, Int32 __gc *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 see the last error. |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful. |