Copyright © 2005-2019 MultiMedia Soft

ZIP.EntryExtractToMemory method

Previous pageReturn to chapter overviewNext page

Remarks

 

Extracts into a memory buffer a specific entry available inside a ZIP file session previously opened through the ZIP.Open method or created through the ZIP.Create method.

 

During the extraction phase the container application is notified through the CallbackZipOperationPerc delegate which reports the current percentage of advancement.

 

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,

strPassword as String,

pBuffer() as Byte,

nBufferLength as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes EntryExtractToMemory (

string strEntryName,

string strPassword,

byte[] pBuffer,

Int32 nBufferLength

);


 

[C++]

public: enumErrorCodes EntryExtractToMemory (

string strEntryName,

string strPassword,

unsigned char __gc[] pBuffer,

Int32 nBufferLength

);


 

 

Parameter

Description

 

 

strEntryName

String representing the name of the entry to extract.

strPassword

String containing the optional password for accessing the requested entry; leave it empty if not needed.

pBuffer

Destination memory buffer where data of the entry are stored

nBufferLength

Length of the memory buffer expressed in bytes.

The exact size in bytes required for storing the requested uncompressed entry can be determined through a previous call to the ZIP.EntryUncompressedSizeGet method

 

 

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.