Copyright (C) 2006-2007 - Jorrit Jongma
Version 0.7 - 4 December 2007

Table of Contents
Source Code
PAR2Lib is a library to handle PAR2 files, providing the functionality to check and,
if necessary, repair files. It's design is streamlined for use in newsreaders, and
works 'incrementally'. This also means that a newsreader using this library can make
queueing decisions based on calls to this library: Do we actually need more than the
smallest PAR2 file to get the full binary? If we do, how much do we need? This library
will provide the answers. Also, the library doesn't need to have any physical files,
anything can be done through memory; whatever the main application designer prefers
and/or the situation demands.

As far as I know, it is the only PAR2 implementation not based on the parchive code.
It was written in Borland Delphi 7 but is available as a library which can be used
from most other languages (like C++).
Currently the library is only available as Win32 DLL. On request I can make it available
for a lot more x86-based platforms.

Because of assembler hand-optimizations, it will never run on a non-x86 platform
Source Code
Source code is currently not available, and I do not know if it will ever be, as I am
still unsure what I'm going to do with the library.
This library is free for personal and non-commercial use. Other licenses are
available on request. Crediting me would be nice, but is not required.
- The library does not provide the functionality to create PAR2 files, only to use
them, it also does not handle PAR1 files. This may all be changed in the future

- The library does not handle the full PAR2 specification, only the mandatory parts.
The optional parts of the specification are not implemented (yet), which doesn't
really matter since I haven't been able to find a PAR2 file using them, which is
fairly logical since as far as I know there is no implementation out there that is
able to create PAR2 files with these optional parts. QuickPar and par2cmdline
dominate the PAR2 market and neither of them has this functionality or has been
updated in a long time.
There are no known bugs at this time.
You can contact me by emailing to Jorrit at Jongma dot Org, please use [PAR2LIB] as subject prefix.
The download includes the DLL, the headers and a sample application. The headers are in Object Pascal, but include some hints for those wanting to translate.

Download the par2lib.rar file

Jorrit Jongma