Skip to content

readDataOfLength #2

@fabiomassimo

Description

@fabiomassimo

On a branch of code I've this

ZipFile *archive = [[ZipFile alloc] initWithFileName:archivePath mode:ZipFileModeUnzip];

if ( ! [archive locateFileInZip:filePath])
{
    [archive close];

    return nil;
}

FileInZipInfo *info = [archive getCurrentFileInZipInfo];

ZipReadStream *stream = [archive readCurrentFileInZip];



NSData *data = [stream readDataOfLength:info.length];<-------INTERFACE ERROR

[stream finishedReading];

[archive close];

return data;

But I get interface error. How can i fix it?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions