President James K. Polk Shiva Shiva 1 1 gold badge 5 5 silver badges 12 12 bronze badges. What are the license requirements that you need. This doesn't make sense. There is no such thing as a "public domain license".
If it's public domain, it doesn't need a license. In fact, if it's public domain it cannot have a license, since a license is issued by the copyright holders, but public domain works by definition do not have copyright holders. Copyright is by default, in order to make something public domain the copyright owner must willfully do that - release his work into public domain. That can be considered licensing - granting other people rights to use the work.
Add a comment. Active Oldest Votes. Highly recommended! Thanks for the heads up. RobDangerous RobDangerous 2 2 silver badges 4 4 bronze badges.
Worth noting that miniz is no longer public domain, recent versions have switched to MIT license. If you have an older version before ZIP64 support was merged in, that is still public domain. It is not Public Domain, but I try using it. It's not a library and not good source code. Well it's dating back to , what can we expect. Even with barebones setup, my zip routines would handle about Like many archive formats, zip has data of compressed file in the beginning, and contents of the archive in the end.
Because this end record ends with variable size comment field, the exact offset cannot be known. Instead, we look for certain bytes 0xb in the end, which indicate the beginning of this record. Below is all the code needed to locate and read the end record:. Here is again the code:. The file header contains all necessary information to go and uncompress that file, most importantly the offset location of local file header record within the zip.
In the end of the for loop, you can see I copy part of the header data to a simplified JZFileHeader structure that gets passed to a callback. I basically strip fields that are not shared by local and global file headers or otherwise useful so the code using this library has a simpler, unified data structure to work with.
Local file header is very similar to the one in central directory. Main differences are the absence of some fields only available at central directory like offset, because local header is immediately followed by file data. There are several compression methods supported by the. The code below either reads stored or inflates deflated the data into a already allocated buffer, depending on compression method. Inflating code is just an adaption of the public domain zpipe.
Only gotcha here is, that you cannot call inflateInit because the data stream does not contain the kind of header information zlib assumes. Instead, you have to call inflateInit2 with a negative window size.
Not bad at all! For example, the 7z. For more information about the 7-zip DLLs, please see this wiki page. In the end, some other features e. A complete API reference is available in the wiki section, where you can find also some basic usage examples of bit7z main features.
0コメント