You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xar_open() returns a handle to an in memory representation of a xarchive. The first argument, file, is the relative or absolute path to the xarchive that is to be opened/created. The second argument, flags can be one of either READ, which will open the xarchive read only (useful for extracting from the xarchive or listing the contents), or WRITE which will create a new xarchive.
When a xarchive is opened with READ, the binary and xml headers are both parsed prior to the return of xar_open(). xar_open() allocates a handle and other state information which must be free'd by calling xar_close() on the returned xar_t handle.
On success, a valid handle is returned. On failure, NULL is returned.