The hash of this package's code: computed from its source when the
journal opened, or, in a compiled build, the one it was given
(builtDefine). Every entry it adds names it.
Adds an entry naming bytes, keeps them, and returns their id. Every
call adds an entry, so the same bytes added twice have two entries. The
entry goes in before the object: a crash between the two leaves an
entry naming an object that never arrived, which check reports, never
bytes kept with no entry naming them. Throws ObjectNotKept when the
entry went in and the object did not.
The code hashes the person has approved: the first word of each line
of approved, so the line shasum prints (<hash> -) goes in as it
is, and the rest of a line is theirs, in whatever bytes. Read each time
it is asked: an entry came from code they checked when its
JournalEntry.code is here.
Every entry checked against the one before it, and for whether the
object it names is here. Not whether that object still holds its bytes:
that reads every byte ever added, and get checks it on each read.
A journal writing into dir, which it claims for this process until
close (see the library comment). Throws a StateError when dir is
already claimed by this process; any other failure to claim it, such as
a folder it cannot write, throws as itself. Null when this package
cannot name its own code the way the library comment does: from its
source (ownHash), or in a compiled build from builtDefine. Every
entry names the code that wrote it, and a journal that cannot name its
code writes none. Throws a StateError when builtDefine is not a
code hash, or, run from source, is not this code's. A relative dir is
resolved when it opens, so the journal stays where it is when the
working directory moves.
The hash of this package's lib/ and is_content_id's, as the library
comment computes it. Null when it cannot be computed exactly that way:
the source is not on disk, as in a compiled build; a lib/ holds a
link, which find and this code would walk differently; or a file's
name is one shasum would print differently from how it is written
(ListedPath.parse).