kuba-- / zip

A portable, simple zip library written in C
MIT License
1.42k stars 276 forks source link

Find offset of a file in a zip file? #325

Closed IvesAwadi closed 10 months ago

IvesAwadi commented 11 months ago

Would it be possible to get the file offset within a zip file?

Thank you.

kuba-- commented 11 months ago

Do you mean - zip entry offset (e.g. for a given/opened name)? What's exactly your use case?

IvesAwadi commented 11 months ago

Yes, my use case is reading the /proc/pid/maps directory to find where a shared object with a given name is mapped at in a process virtual space.

Here's a link for reference Stackoverflow

kuba-- commented 10 months ago

Ok, thanks. I'll add to the feature list.

kuba-- commented 10 months ago

PR: https://github.com/kuba--/zip/pull/326

IvesAwadi commented 10 months ago

Thank you so much, will close the issue now.

kuba-- commented 10 months ago

Thank you so much, will close the issue now.

Check the PR if it works for you. Also look at the new test which I've added