mirror of
https://github.com/fadden/nulib2.git
synced 2024-10-02 16:54:48 +00:00
Reformatted files to use spaces instead of hard tabs. No substantitve changes.
This commit is contained in:
parent
d6a5154b60
commit
9d524310f2
@ -64,15 +64,15 @@ threads are annotated in the "copy" list.)
|
|||||||
|
|
||||||
One of the goals was to be able to execute a sequence of operations like:
|
One of the goals was to be able to execute a sequence of operations like:
|
||||||
|
|
||||||
- open original archive
|
- open original archive
|
||||||
- read original archive
|
- read original archive
|
||||||
- modify archive
|
- modify archive
|
||||||
- flush (success)
|
- flush (success)
|
||||||
- modify archive
|
- modify archive
|
||||||
- flush (failure, rollback)
|
- flush (failure, rollback)
|
||||||
- modify archive
|
- modify archive
|
||||||
- flush (success)
|
- flush (success)
|
||||||
- close archive
|
- close archive
|
||||||
|
|
||||||
The archive is opened at the start and held open across many operations.
|
The archive is opened at the start and held open across many operations.
|
||||||
There is never a need to re-read the entire archive. We could avoid the
|
There is never a need to re-read the entire archive. We could avoid the
|
||||||
@ -98,7 +98,7 @@ In summary:
|
|||||||
initially contains a complete copy of "orig".
|
initially contains a complete copy of "orig".
|
||||||
"new" list contains all new additions to the archive, including
|
"new" list contains all new additions to the archive, including
|
||||||
new additions that replace existing entries (the existing entry
|
new additions that replace existing entries (the existing entry
|
||||||
is deleted from "copy" and then added to "new").
|
is deleted from "copy" and then added to "new").
|
||||||
|
|
||||||
|
|
||||||
Each Record in the list has a "thread modification" list attached to it.
|
Each Record in the list has a "thread modification" list attached to it.
|
||||||
@ -106,9 +106,9 @@ Any changes to the record header or additions to the thread mod list are
|
|||||||
made in the "copy" set; the "original" set remains untouched. The thread
|
made in the "copy" set; the "original" set remains untouched. The thread
|
||||||
mod list can have the following items in it:
|
mod list can have the following items in it:
|
||||||
|
|
||||||
- delete thread (NuThreadIdx)
|
- delete thread (NuThreadIdx)
|
||||||
- add thread (type, otherSize, format, +contents)
|
- add thread (type, otherSize, format, +contents)
|
||||||
- update pre-sized thread (NuThreadIdx, +contents)
|
- update pre-sized thread (NuThreadIdx, +contents)
|
||||||
|
|
||||||
Contents are specified with a NuDataSource, which allows the application
|
Contents are specified with a NuDataSource, which allows the application
|
||||||
to indicate that the data is already compressed. This is useful for
|
to indicate that the data is already compressed. This is useful for
|
||||||
|
Loading…
Reference in New Issue
Block a user